Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2902 Tampilan

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
Buang
Jawaban Terbai


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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jul 25
879
1
Sep 24
1474
2
Okt 23
5605
0
Okt 23
1730
3
Sep 23
2447