If you want to define many2many field in OpenERP use like below code -
class test (osv.osv):
_inherit='sale.order.line'
_columns={
'product1_cat':fields.char('product academy'),
'product&_cat':fields.many2one('product.category','Product category'),
}
class test (osv.osv):
_inherit='res.partner'
_columns={
'name':fields.char("NAME")
}
test()
0 Comment(s)