diff --git a/tests/scenario_analytic_purchase.rst b/tests/scenario_analytic_purchase.rst index 846fe021c3..c705107d9b 100644 --- a/tests/scenario_analytic_purchase.rst +++ b/tests/scenario_analytic_purchase.rst @@ -73,6 +73,15 @@ Create parties:: >>> supplier = Party(name='Supplier') >>> supplier.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.type = 'goods' >>> template.purchasable = True >>> template.list_price = Decimal('10') - >>> template.account_expense = expense - >>> template.account_revenue = revenue + >>> template.account_category = account_category >>> template.save() >>> product, = template.products