bemade_total_show_currency
This commit is contained in:
parent
f259da886f
commit
5422139cfa
2 changed files with 55 additions and 0 deletions
41
bemade_total_show_currency/__manifest__.py
Normal file
41
bemade_total_show_currency/__manifest__.py
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#
|
||||
# Bemade Inc.
|
||||
#
|
||||
# Copyright (C) June 2023 Bemade Inc. (<https://www.bemade.org>).
|
||||
# Author: mdurepos (Contact : it@bemade.org)
|
||||
#
|
||||
# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
|
||||
# It is forbidden to publish, distribute, sublicense, or sell copies of the Software
|
||||
# or modified copies of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
# DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
{
|
||||
'name': 'Show Currency in total',
|
||||
'version': '15.0.0.0.1',
|
||||
'summary': 'Show Currency in total',
|
||||
'description': """
|
||||
This module adds the ability to view currency in total in all pdf.
|
||||
""",
|
||||
'category': 'Account',
|
||||
'author': 'Bemade Inc.',
|
||||
'website': 'https://www.bemade.org',
|
||||
'license': 'OPL-1',
|
||||
'depends': [
|
||||
'sale',
|
||||
'purchase',
|
||||
'account'
|
||||
],
|
||||
'data': [
|
||||
'views/total_template.xml'
|
||||
],
|
||||
'demo': [],
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
}
|
||||
14
bemade_total_show_currency/views/total_template.xml
Normal file
14
bemade_total_show_currency/views/total_template.xml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<!-- Héritage de la vue pour ajouter la devise à côté du total -->
|
||||
<template id="document_tax_totals_inherit" inherit_id="account.document_tax_totals">
|
||||
<xpath expr="//tr[contains(@class, 'o_total')]/td[1]/strong" position="after">
|
||||
<!-- Add the currency symbol in parentheses next to "Total" -->
|
||||
<t t-if="tax_totals['currency_symbol']">
|
||||
<span> (<t t-esc="tax_totals['currency_symbol']"/>)</span>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
</data>
|
||||
</odoo>
|
||||
Loading…
Reference in a new issue