From c6e183240ee27c0bede35d262cbfc79b41e6b052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 20 Jun 2018 12:09:49 +0200 Subject: [PATCH] Remove accounts from products issue3805 review45111002 --- tests/scenario_project_invoice_effort.rst | 10 +++++++++- tests/scenario_project_invoice_multiple_party.rst | 10 +++++++++- tests/scenario_project_invoice_progress.rst | 10 +++++++++- tests/scenario_project_invoice_timesheet.rst | 10 +++++++++- 4 files changed, 36 insertions(+), 4 deletions(-) diff --git a/tests/scenario_project_invoice_effort.rst b/tests/scenario_project_invoice_effort.rst index 0f399cc651..1afcd094e6 100644 --- a/tests/scenario_project_invoice_effort.rst +++ b/tests/scenario_project_invoice_effort.rst @@ -79,6 +79,14 @@ Create employee:: >>> employee.company = company >>> employee.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 product:: >>> ProductUom = Model.get('product.uom') @@ -90,7 +98,7 @@ Create product:: >>> template.default_uom = hour >>> template.type = 'service' >>> template.list_price = Decimal('20') - >>> template.account_revenue = revenue + >>> template.account_category = account_category >>> template.save() >>> product, = template.products diff --git a/tests/scenario_project_invoice_multiple_party.rst b/tests/scenario_project_invoice_multiple_party.rst index 007a8534af..78fa0a85d4 100644 --- a/tests/scenario_project_invoice_multiple_party.rst +++ b/tests/scenario_project_invoice_multiple_party.rst @@ -38,6 +38,14 @@ Create two customers:: >>> customer2 = Party(name='Customer 2') >>> customer2.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 product:: >>> ProductUom = Model.get('product.uom') @@ -49,7 +57,7 @@ Create product:: >>> template.default_uom = hour >>> template.type = 'service' >>> template.list_price = Decimal('20') - >>> template.account_revenue = revenue + >>> template.account_category = account_category >>> template.save() >>> product, = template.products diff --git a/tests/scenario_project_invoice_progress.rst b/tests/scenario_project_invoice_progress.rst index 4ba44bbea7..851b17d6e2 100644 --- a/tests/scenario_project_invoice_progress.rst +++ b/tests/scenario_project_invoice_progress.rst @@ -79,6 +79,14 @@ Create employee:: >>> employee.company = company >>> employee.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 product:: >>> ProductUom = Model.get('product.uom') @@ -90,7 +98,7 @@ Create product:: >>> template.default_uom = hour >>> template.type = 'service' >>> template.list_price = Decimal('20') - >>> template.account_revenue = revenue + >>> template.account_category = account_category >>> template.save() >>> product, = template.products diff --git a/tests/scenario_project_invoice_timesheet.rst b/tests/scenario_project_invoice_timesheet.rst index 59d819dcba..d7e8b30867 100644 --- a/tests/scenario_project_invoice_timesheet.rst +++ b/tests/scenario_project_invoice_timesheet.rst @@ -79,6 +79,14 @@ Create employee:: >>> employee.company = company >>> employee.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 product:: >>> ProductUom = Model.get('product.uom') @@ -90,7 +98,7 @@ Create product:: >>> template.default_uom = hour >>> template.type = 'service' >>> template.list_price = Decimal('20') - >>> template.account_revenue = revenue + >>> template.account_category = account_category >>> template.save() >>> product, = template.products