تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2077 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 23
11127
1
يونيو 22
2405
2
أغسطس 20
8819
1
نوفمبر 19
5373
1
يونيو 19
6780