Remove accounts from products

issue3805
review45111002
This commit is contained in:
Cédric Krier committed 2018-06-20 12:09:49 +02:00
1 parent 58c5439cb3
commit c6e183240e
4 files changed
+36 -4

No files matched your search

+9 -1
View File
@@ -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
@@ -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
+9 -1
View File
@@ -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
+9 -1
View File
@@ -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