[IMP]Adding taxes to product category
bzr revid: dhr@tinyerp.com-20120822124710-loo8pjj33g1dgzp5
This commit is contained in:
@@ -24,6 +24,12 @@ from osv import fields, osv
|
||||
class product_category(osv.osv):
|
||||
_inherit = "product.category"
|
||||
_columns = {
|
||||
'taxes_id': fields.many2many('account.tax', 'product_taxes_categ_rel',
|
||||
'prod_id', 'tax_id', 'Customer Taxes',
|
||||
domain=[('parent_id','=',False),('type_tax_use','in',['sale','all'])]),
|
||||
'supplier_taxes_id': fields.many2many('account.tax',
|
||||
'product_supplier_taxes_categ_rel', 'prod_id', 'tax_id',
|
||||
'Supplier Taxes', domain=[('parent_id', '=', False),('type_tax_use','in',['purchase','all'])]),
|
||||
'property_account_income_categ': fields.property(
|
||||
'account.account',
|
||||
type='many2one',
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
<xpath expr="/form/sheet//group[@name='account_property']" position="inside">
|
||||
<field name="property_account_income_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
||||
<field name="property_account_expense_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
||||
<field name="taxes_id" widget="many2many_tags"/>
|
||||
<field name="supplier_taxes_id" widget="many2many_tags"/>
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user