First we have to look customized module, according to there requirement fields
class, model and then we have to decide to inherit existing module. As in below .py (Python file):-
class Demo(osv.osv):
_inherit='sale.order.line' // sale.order.line is inherit //
_columns={
'product1_cat':fields.char('product academy'),
'product_cat':fields.many2one('product.category','Product category'),
}
class part(osv.osv):
_inherit='res.partner'
_columns={
'name':fields.char("NAME")
}
Demo()
0 Comment(s)