changeset ffaa3ecbdcc1 in modules/web_shop_shopify:default
details:
https://hg.tryton.org/modules/web_shop_shopify?cmd=changeset&node=ffaa3ecbdcc1
description:
Copy unit of measure with different digits in test scenario
issue11187
diffstat:
tests/scenario_web_shop_shopify_secondary_unit.rst | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (14 lines):
diff -r 240c671c6be7 -r ffaa3ecbdcc1
tests/scenario_web_shop_shopify_secondary_unit.rst
--- a/tests/scenario_web_shop_shopify_secondary_unit.rst Mon Feb 07
22:41:11 2022 +0100
+++ b/tests/scenario_web_shop_shopify_secondary_unit.rst Wed Mar 09
01:02:12 2022 +0100
@@ -114,9 +114,7 @@
>>> unit.rounding = 0.01
>>> unit.save()
>>> cm, = Uom.find([('name', '=', "Centimeter")])
- >>> cm.digits = 0
- >>> cm.rounding = 1
- >>> cm.save()
+ >>> cm, = cm.duplicate(default={'digits': 0, 'rounding': 1})
>>> template = ProductTemplate()
>>> template.name = "Product 1"