Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2257 Visualizzazioni

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?

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
apr 23
11322
1
giu 22
2571
2
ago 20
9026
1
nov 19
5614
1
giu 19
6866