İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2873 Görünümler

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
Vazgeç
En İyi Yanıt


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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Tem 25
863
1
Eyl 24
1467
2
Eki 23
5593
0
Eki 23
1715
3
Eyl 23
2431