Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3260 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź


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'

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
paź 25
2090
2
lip 25
1358
1
wrz 24
1812
2
paź 23
6094
3
wrz 23
2969