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

classres_user(models.Model): 

 _inherit = ['res.partner']    

  zone = fields.Selection([('N', 'Norte'), ('C', 'Centro'), ('S', 'Sur')], string='Zona comercial')

My question is because when I try to add a new field to contacts from my module visit the server me error 500?

Avatar
Discard
Best Answer


The below _inherit uses if you want to add feature to your model for example messaging or mailing

_inherit = ['model_name']


If you want to add field to model use:

_inherit = 'res.partner'

Avatar
Discard
Related Posts Replies Views Activity
1
Sep 24
175
2
Oct 23
3953
0
Oct 23
727
3
Sep 23
1001
0
May 23
1443