From 1eec4dc939a279fc269bb6ba46835e25f8eefd55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 20 Jun 2018 12:09:52 +0200 Subject: [PATCH] Remove accounts from products issue3805 review45111002 --- tests/scenario_sale_shipment_grouping.rst | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/scenario_sale_shipment_grouping.rst b/tests/scenario_sale_shipment_grouping.rst index b9abae2fd0..fc91058dd3 100644 --- a/tests/scenario_sale_shipment_grouping.rst +++ b/tests/scenario_sale_shipment_grouping.rst @@ -71,6 +71,15 @@ Create parties:: ... sale_shipment_grouping_method='standard') >>> customer_grouped.save() +Create account category:: + + >>> ProductCategory = Model.get('product.category') + >>> account_category = ProductCategory(name="Account Category") + >>> account_category.accounting = True + >>> account_category.account_expense = expense + >>> account_category.account_revenue = revenue + >>> account_category.save() + Create product:: >>> ProductUom = Model.get('product.uom') @@ -84,8 +93,7 @@ Create product:: >>> template.purchasable = True >>> template.salable = True >>> template.list_price = Decimal('10') - >>> template.account_expense = expense - >>> template.account_revenue = revenue + >>> template.account_category = account_category >>> template.save() >>> product, = template.products