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

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 23
11358
1
มิ.ย. 22
2611
ERROR: Field does not exist แก้ไขแล้ว
2
ส.ค. 20
9081
1
พ.ย. 19
5639
link a custom field to two tables/modul แก้ไขแล้ว
1
มิ.ย. 19
6912