If the model is already present and you want it to inherit another model, it should be done as follows:
class custom_res_partner(osv.osv):
_name = "res.partner"
_inherit = ['res.partner', 'A']
_namethe important part here is that Odoo knows which model inherits from it. in _inherityou also need to specify res.partner, because you expand this model.
source
share