im having a hard time understanding _inherit, they said that with _inherit you could override a object , for example res.partner ,
i have created a new module folder on odoo/addons path. and on my module.py i added the below script
with this python script they said that you should be able to add fields into the res.partner object
~SOME OF MY working codes here
.
.
class res_partner(osv.osv)
_inherit='res.partner'
_columns={ my_var:fields.integer('my number'),
}
after updating and upgrading modules in odoo,
why is it that i cant find the field 'my_var' into the Settings>Database Structure > Models and search for res.parner > fields
hi, Just confirm that you have added your file into __init__.py file.