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

        issue10269
diffstat:

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

diffs (12 lines):

diff -r 94ba77090407 -r 8552404b1bf6 
tests/scenario_purchase_shipment_cost_with_account_stock.rst
--- a/tests/scenario_purchase_shipment_cost_with_account_stock.rst      Mon Sep 
13 23:29:56 2021 +0200
+++ b/tests/scenario_purchase_shipment_cost_with_account_stock.rst      Mon Oct 
11 17:19:03 2021 +0200
@@ -88,6 +88,8 @@
     >>> template_average, = template.duplicate({
     ...         'cost_price_method': 'average',
     ...         })
+    >>> template_average.account_category = account_category
+    >>> template_average.save()
     >>> product_average, = template_average.products
 
     >>> carrier_template = ProductTemplate()

Reply via email to