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

In the sales module (or any module with a partner that has an address), when creating a new customer the address fields ask for state and country.

I would like to only allow administrators to create/edit state and country. Non administrators should only be able to select a state and country from the dropdown, but not create new ones.

How would I go about doing this?

Avatar
Abbandona

Override create method and check login user group if the login user group is admin than allow him to create other wise restrict the user.

Override Create Method: https://goo.gl/4BkizH

Check login user group: https://goo.gl/Ts3qqK

Post correlati Risposte Visualizzazioni Attività
2
mar 25
6022
2
feb 20
3327
2
gen 19
3376
1
nov 16
5664
0
feb 16
2969