Hello guys. I have boolean validation field in a module called billing_notice. I only want some users to modify this field.
Let's say, I have user1 user2 and user3
I only want user1 to have the power to modify this field. How can I do this restriction with python code or xml code? If you can provide some example I would love it.
Thanks!!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
Hi,
You can create a new user group named Edit Validation field, and later you can add the users who need to edit the field to this group.
Now in the view level, you have to make this field readonly for all users initially, can be done by settings readonly="1" in the main view.
Now in order to edit for the user in this group, create an inherited view, set group for this view and remove readonly attribute from the field.
Similar use case: https://www.youtube.com/watch?v=Fsp6lAPHz08
Thanks
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
1
feb 21
|
7176 | ||
How to know menu parent id?
Risolto
|
|
1
gen 16
|
6646 | |
|
1
nov 21
|
11140 | ||
|
4
ago 20
|
11745 | ||
|
6
gen 19
|
25923 |