跳至內容
選單
此問題已被標幟
1 回覆
972 瀏覽次數

Hi Family

please I want to edit my contact module  company types from  to Client and Integrator but I keep getting this error message 

please I need help dear odoo'ers with a video description

頭像
捨棄

In this case, you need to intervene with Python code. What version of Odoo are you using and where is it installed?

作者

hi Lex I am using version 16 and its online

You should use Contact tags instead of changing this - these two types drive a lot of other logical behaviors in Odoo and it would be a significant undertaking to teach Odoo about a new type.

最佳答案

Hi,
If you really need to do it, you can do it by inheriting the model and changing the selection values or you can change it from the translation.

class Partner(models.Model):

    _inherit = "res.partner"


    company_type = fields.Selection(selection=[('person', 'Client'), ('company', 'Integrator')])

Thanks

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 21
68
1
3月 15
3929
2
12月 20
3966
2
7月 25
972
1
7月 25
1331