Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2263 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 23
11335
1
cze 22
2576
2
sie 20
9045
1
lis 19
5619
1
cze 19
6874