Skip to Content
Menú
This question has been flagged
1 Respondre
2919 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
2
de jul. 25
887
1
de set. 24
1482
2
d’oct. 23
5639
0
d’oct. 23
1735
3
de set. 23
2477