diff --git a/tests/scenario_web_shop_shopify_secondary_unit.rst b/tests/scenario_web_shop_shopify_secondary_unit.rst index 02e802f3a7..b7525ef11a 100644 --- a/tests/scenario_web_shop_shopify_secondary_unit.rst +++ b/tests/scenario_web_shop_shopify_secondary_unit.rst @@ -114,9 +114,7 @@ Create product:: >>> 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"