Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
It is possible to make a read only view of the opened maintenance requests of a specific maintenance team?
I want that the users can see their requests but can't modify the stage of then.
1- Declare a boolean field :
fields_readonly = fields.Boolean(compute='compute_fields_readonly')
2- then if your function:
user = self.env.user
for record in self:
record.fields_readonly = True
3- in your view, add boolean to view with invisible="1" and attrs readonly if the boolean is true.
Hope this helps.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/7/18, 12:41 PM|
|Seen: 115 times|
|Last updated: 7/7/18, 7:15 PM|