diff --git a/tests/scenario_purchase_invoice_line_standalone.rst b/tests/scenario_purchase_invoice_line_standalone.rst index dd4295b316..ff7c829ec6 100644 --- a/tests/scenario_purchase_invoice_line_standalone.rst +++ b/tests/scenario_purchase_invoice_line_standalone.rst @@ -60,6 +60,15 @@ Create parties:: >>> customer = Party(name='Customer') >>> customer.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') @@ -74,8 +83,7 @@ Create product:: >>> template.salable = True >>> template.list_price = Decimal('10') >>> template.cost_price_method = 'fixed' - >>> template.account_expense = expense - >>> template.account_revenue = revenue + >>> template.account_category = account_category >>> product, = template.products >>> product.cost_price = Decimal('5') >>> template.save()