From 9f8be7c000c1b531e101ec5168df46962c3df2dc Mon Sep 17 00:00:00 2001 From: Stepan Savelyev Date: Tue, 21 Jul 2020 17:58:27 +0500 Subject: [PATCH] [ADD] Document variable: item.discount for items (positions) of order --- wizard/res_partner_contract_wizard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wizard/res_partner_contract_wizard.py b/wizard/res_partner_contract_wizard.py index 9f6a039..0394cc1 100755 --- a/wizard/res_partner_contract_wizard.py +++ b/wizard/res_partner_contract_wizard.py @@ -207,6 +207,7 @@ class ContractWizard(models.TransientModel, Extension): "count": item.product_uom_qty, "unit": item.product_uom.name, "cost": self.to_fixed(item.price_unit), + "discount": self.to_fixed(item.discount), "subtotal": self.to_fixed(item.price_subtotal), } for item in self.target.order_id.order_line or []