Remove accounts from products
issue3805 review45111002
This commit is contained in:
1 parent
49fd58018f
commit
dde00563ff
1 file changed
+9
-1
@@ -84,6 +84,14 @@ Create purchase user::
|
||||
>>> purchase_user.groups.append(purchase_group)
|
||||
>>> purchase_user.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.save()
|
||||
|
||||
Create product::
|
||||
|
||||
>>> set_user(product_admin_user)
|
||||
@@ -97,7 +105,7 @@ Create product::
|
||||
>>> template.type = 'goods'
|
||||
>>> template.list_price = Decimal('20')
|
||||
>>> template.purchasable = True
|
||||
>>> template.account_expense = expense
|
||||
>>> template.account_category = account_category
|
||||
>>> template.save()
|
||||
>>> product, = template.products
|
||||
|
||||
|
||||
Reference in new issue
Block a user