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

Hi, so I just made a custom field on the customer form before, but the custom I made is also changing on the vendor form. How to visible the custom field I made in only customer form?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Which version are you working on ? 

If you're in developper mode, you should be able to look at the name of the field for vendor or customer.

Easiest way to hide it for non customers is to add a domain in your XML.

For example in the field declaration (field name="your_field") you can add attrs="{'invisible': [('user_type', '!=', 'customer')]}"

Don't forget to replace user_type by the correct field name.

Hope it will help

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 23
11346
1
thg 6 22
2586
2
thg 8 20
9054
1
thg 11 19
5625
1
thg 6 19
6888