Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3270 Vues

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
Ignorer
Meilleure réponse


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
Ignorer
Publications associées Réponses Vues Activité
1
oct. 25
2159
2
juil. 25
1372
1
sept. 24
1824
2
oct. 23
6104
3
sept. 23
2979