跳至内容
菜单
此问题已终结
1 回复
2906 查看

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?

形象
丢弃
最佳答案


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'

形象
丢弃
相关帖文 回复 查看 活动
2
7月 25
880
1
9月 24
1477
2
10月 23
5609
0
10月 23
1731
3
9月 23
2454