Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2892 Zobrazení

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
Zrušit
Nejlepší odpověď


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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvc 25
870
1
zář 24
1472
2
říj 23
5597
0
říj 23
1728
3
zář 23
2441