[ADD] Document variable: item.discount for items (positions) of order

This commit is contained in:
Stepan Savelyev 2020-07-21 17:58:27 +05:00
parent 755658a6f9
commit 9f8be7c000

View File

@ -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 []