From dbf051db3084cd368e80978b6bcea557e192b078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 20 Jun 2018 12:09:40 +0200 Subject: [PATCH] Remove accounts from products issue3805 review45111002 --- tests/scenario_account_dunning_fee.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/scenario_account_dunning_fee.rst b/tests/scenario_account_dunning_fee.rst index f705eb631b..2effdae75e 100644 --- a/tests/scenario_account_dunning_fee.rst +++ b/tests/scenario_account_dunning_fee.rst @@ -47,6 +47,14 @@ Create chart of accounts:: ... ]) >>> journal_revenue.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 fees:: >>> Fee = Model.get('account.dunning.fee') @@ -57,7 +65,7 @@ Create fees:: >>> template_fee.default_uom = unit >>> template_fee.type = 'service' >>> template_fee.list_price = Decimal('10') - >>> template_fee.account_revenue = revenue + >>> template_fee.account_category = account_category >>> template_fee.save() >>> product_fee, = template_fee.products