Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1067 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 21
68
1
มี.ค. 15
4020
hide some contacts แก้ไขแล้ว
2
ธ.ค. 20
4021
2
ก.ค. 25
1083
Menu's with different default filter แก้ไขแล้ว
1
ก.ค. 25
1478