Final changes have the total discount field and translate

This commit is contained in:
cosmos 2023-09-03 13:51:17 -05:00
parent f6a968535d
commit 94279af9b8
3 changed files with 7 additions and 1 deletions

View File

@ -37,3 +37,7 @@ msgstr "Bar"
msgctxt "model:ir.model.button,string:sale_print_bill_button"
msgid "Bill"
msgstr "Subtotal"
msgctxt "field:sale.sale,total_discount:"
msgid "Total Discount"
msgstr "Total Descuento"

View File

@ -1,6 +1,8 @@
from trytond.pool import Pool, PoolMeta
from trytond.model import ModelView, fields
from trytond.transaction import Transaction
from trytond.modules.currency.fields import Monetary
from decimal import Decimal
import requests
import json

View File

@ -12,7 +12,7 @@ this repository contains the full copyright notices and license terms. -->
</group>
<newline/>
</xpath>
<xpath expr="/form/notebook/page[@id='purchase']/group[@id='amount']/field[@name='tax_amount']" position="after">
<xpath expr="/form/notebook/page[@id='sale']/group[@id='amount']/field[@name='tax_amount']" position="after">
<label name="total_discount"/>
<field name="total_discount"/>
</xpath>