changeset 31061ac0b0e4 in modules/product:default
details: https://hg.tryton.org/modules/product?cmd=changeset;node=31061ac0b0e4
description:
Set company context in product instance
This ensures that the correct value for field depending on the company
from
product is used.
issue8690
review252281002
diffstat:
product.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r adf2c57cf4cd -r 31061ac0b0e4 product.py
--- a/product.py Sat Sep 28 23:59:09 2019 +0200
+++ b/product.py Tue Oct 01 22:23:55 2019 +0200
@@ -395,6 +395,10 @@
default.setdefault('code', None)
return super().copy(products, default=default)
+ @property
+ def list_price_used(self):
+ return self.template.get_multivalue('list_price')
+
class ProductListPrice(ModelSQL, CompanyValueMixin):
"Product List Price"