I want to hide edit button in form issue for specific user. In this case , I want user only can create issue but can't edit any recorded issue. I have tried change in access control list and record rules but it's not working. I also have tried change access rights in models project.issue and unchecked write access for user. Then , user can't edit but also can't create. Any one can help me for this case?thank you..
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
Hmm,
I can't really think of a nice way to solve this. You are correct that if you take away write access you also block the create. The only thing that leaps to mind is to inherit the model, inherit the write method and raise an osv.except_osv for that user(s) before you call super.write.
Not the most elegant solution but it would work. Write is only called for updates to existing records, the orm create method is called for new records.
HTH,
Adrian, Auckland, NZ.
Sorry, actually I don't really understand how to inherit the model..can you tell me steps for solve this problem?thank you for the answer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
0
mars 15
|
3991 | ||
|
1
mars 15
|
5578 | ||
|
2
avr. 17
|
15540 | ||
|
2
févr. 24
|
12280 | ||
|
0
juin 24
|
1282 |