Add credito sale

This commit is contained in:
sinergia 2024-01-12 22:27:02 +00:00
parent 4756c4468b
commit 04ada1d22c
2 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ class Sale(metaclass=PoolMeta):
__name__ = 'sale.sale' __name__ = 'sale.sale'
pizza_number = fields.Integer("Number pizza") pizza_number = fields.Integer("Number pizza")
credito = fields.Boolean("Credito")
total_discount = fields.Function( total_discount = fields.Function(
Monetary( Monetary(
"Total Discount", digits='currency', currency='currency'), "Total Discount", digits='currency', currency='currency'),

View File

@ -16,5 +16,7 @@ this repository contains the full copyright notices and license terms. -->
position="after"> position="after">
<label name="total_discount"/> <label name="total_discount"/>
<field name="total_discount"/> <field name="total_discount"/>
<label name="credito"/>
<field name="credito"/>
</xpath> </xpath>
</data> </data>