From 1f2485321cdc5963da69318c2e843d2f11ea4c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 11 Oct 2021 17:19:03 +0200 Subject: [PATCH] Fill account_category after duplicate product template in test scenario issue10269 --- tests/scenario_purchase_shipment_cost_with_account_stock.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/scenario_purchase_shipment_cost_with_account_stock.rst b/tests/scenario_purchase_shipment_cost_with_account_stock.rst index 7d73cfa9fb..eee2d72878 100644 --- a/tests/scenario_purchase_shipment_cost_with_account_stock.rst +++ b/tests/scenario_purchase_shipment_cost_with_account_stock.rst @@ -88,6 +88,8 @@ Create products:: >>> 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()