Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
2926 Visninger

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
Kassér
Bedste svar


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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
jul. 25
890
1
sep. 24
1486
2
okt. 23
5647
0
okt. 23
1739
3
sep. 23
2485