In Sale->sales order->sales person field need to be lock to all the users except admin.how can i do that i.e:Only administrator can select the sales person from the select field
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
Hi,
Following example will make Salesperson field as readonly if logged in user is not admin . You can apply invisible instead of readonly, if you want to make that field invisible. Make following changes in form view of sale.order object
<field name="user_id" attrs="{'readonly': [('user_id','!=',1)]}"/>
Hope this may help you.
But admin should select the sales persons from the list but all other users only need to see their own names.Read only option is not applicable here.
You can apply domain where if user is admin, selection field should show all the users, else only display logged in user's name.
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
paź 20
|
3306 | ||
|
0
lut 25
|
1317 | ||
|
0
sty 25
|
1138 | ||
Field service upgrade
Rozwiązane
|
|
1
gru 24
|
1467 | |
|
1
cze 22
|
5604 |