Skip to Content
Menu
This question has been flagged
1 Reply
10253 Views

I want to inherit res.partner model in my custom module.

In py file,

class assest(models.Model):
_name = 'res.partner'

but i am getting security error.

how to solve this?

please help me

Avatar
Discard
Best Answer

Hi,

You can inherit a model like this,

class ResPartner(models.Model):
_inherit = 'res.partner'

See this: How To Inherit And Add Field to Existing Views In Odoo12

Thanks

Avatar
Discard