Hello, I have Odoo 8.
I override the "create" method of the model "product.pricelist.item" in which I do some things after the record is created. In updating the record, I have some problems, so I don't want to allow the update. How can I turn off the "save" button when the user is updating, or how to display an error message when the user presses this button?
Use security groups...
By putting a user in high security restricted gruoup you can deny him some rights...
For any field (attribute) of any model you can specify CRUD (create,read,update, delte) rights...
You can modify them in GUI (Settings > Technical > Security
Or modify then via custom module and import security rules : )
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 12/10/14, 7:23 AM|
|Seen: 453 times|
|Last updated: 3/16/15, 8:10 AM|