Remove accounts from products

issue3805
review45111002
This commit is contained in:
Cédric Krier committed 2018-06-20 12:09:53 +02:00
1 parent ceeabf1a11
commit 9cf83485c8
2 files changed
+18 -2

No files matched your search

@@ -33,6 +33,14 @@ 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_revenue = revenue
>>> account_category.save()
Create product::
>>> ProductUom = Model.get('product.uom')
@@ -44,7 +52,7 @@ Create product::
>>> template.type = 'goods'
>>> template.salable = True
>>> template.list_price = Decimal('10')
>>> template.account_revenue = revenue
>>> template.account_category = account_category
>>> template.save()
>>> product, = template.products
@@ -33,6 +33,14 @@ 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_revenue = revenue
>>> account_category.save()
Create product::
>>> ProductUom = Model.get('product.uom')
@@ -44,7 +52,7 @@ Create product::
>>> template.type = 'goods'
>>> template.salable = True
>>> template.list_price = Decimal('10')
>>> template.account_revenue = revenue
>>> template.account_category = account_category
>>> template.save()
>>> product, = template.products