From 2bc9f482cf3de79814d5bbb6fd1dae0f55df3cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 20 Jun 2018 12:09:53 +0200 Subject: [PATCH] Remove accounts from products issue3805 review45111002 --- tests/scenario_sale_subscription.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/scenario_sale_subscription.rst b/tests/scenario_sale_subscription.rst index 632e7110b3..d827ced3af 100644 --- a/tests/scenario_sale_subscription.rst +++ b/tests/scenario_sale_subscription.rst @@ -75,6 +75,14 @@ Create subscription recurrence rule sets:: >>> rule.interval = 1 >>> daily.save() +Create account category:: + + >>> ProductCategory = Model.get('product.category') + >>> account_category = ProductCategory(name="Account Category") + >>> account_category.accounting = True + >>> account_category.account_revenue = revenue + >>> account_category.save() + Create subscription service:: >>> Service = Model.get('sale.subscription.service') @@ -88,7 +96,7 @@ Create subscription service:: >>> template.default_uom = unit >>> template.type = 'service' >>> template.list_price = Decimal('10') - >>> template.account_revenue = revenue + >>> template.account_category = account_category >>> template.save() >>> product, = template.products