跳至内容
菜单
此问题已终结
2366 查看

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?

形象
丢弃

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

相关帖文 回复 查看 活动
2
3月 25
5809
2
2月 20
3327
2
1月 19
3184
1
11月 16
5435
0
2月 16
2855