changeset bf0f5b34b74a in modules/product_price_list:default
details:
https://hg.tryton.org/modules/product_price_list?cmd=changeset;node=bf0f5b34b74a
description:
Use subclass instead of assigning get_multivalue
Since issue6573, such assignation is no more allowed.
diffstat:
price_list.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r b654d54f3a52 -r bf0f5b34b74a price_list.py
--- a/price_list.py Mon Aug 19 18:44:32 2019 +0200
+++ b/price_list.py Sun Sep 08 22:13:05 2019 +0200
@@ -130,8 +130,11 @@
def get_check_formula_product(cls):
pool = Pool()
Product = pool.get('product.product')
- product = Product()
- product.get_multivalue = lambda name: Decimal('0')
+
+ class Mock(Product):
+ def get_multivalue(self, name, **pattern):
+ return Decimal(0)
+ product = Mock()
return product
def check_formula(self):