Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
978 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Tác giả

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.

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 21
68
1
thg 3 15
3946
hide some contacts Đã xử lý
2
thg 12 20
3974
2
thg 7 25
995
1
thg 7 25
1350