From 94279af9b8111dfd2befee86243bd8697fe683d0 Mon Sep 17 00:00:00 2001 From: cosmos Date: Sun, 3 Sep 2023 13:51:17 -0500 Subject: [PATCH] Final changes have the total discount field and translate --- locale/es.po | 4 ++++ sale.py | 2 ++ view/sale_form.xml | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/locale/es.po b/locale/es.po index 4dbade3..361e158 100644 --- a/locale/es.po +++ b/locale/es.po @@ -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" \ No newline at end of file diff --git a/sale.py b/sale.py index 3497c86..b99b6f7 100644 --- a/sale.py +++ b/sale.py @@ -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 diff --git a/view/sale_form.xml b/view/sale_form.xml index dff9d0b..4604357 100644 --- a/view/sale_form.xml +++ b/view/sale_form.xml @@ -12,7 +12,7 @@ this repository contains the full copyright notices and license terms. --> - +