changeset b804b5645619 in modules/sale:default
details: https://hg.tryton.org/modules/sale?cmd=changeset&node=b804b5645619
description:
        Fill account_category after duplicate product template in test scenario

        issue10269
diffstat:

 tests/scenario_sale_reporting.rst |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r bdbd8ba02e94 -r b804b5645619 tests/scenario_sale_reporting.rst
--- a/tests/scenario_sale_reporting.rst Fri Oct 08 19:21:06 2021 +0200
+++ b/tests/scenario_sale_reporting.rst Mon Oct 11 17:19:03 2021 +0200
@@ -105,6 +105,8 @@
     >>> product1, = template1.products
 
     >>> template2, = template1.duplicate(default={'name': "Product2"})
+    >>> template2.account_category = account_category
+    >>> template2.save()
     >>> product2, = template2.products
 
     >>> category_root1 = Category(name="Root1")

Reply via email to