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.
Here's my problem: I need to create a double validation process on a business process and i need to remove a button view from a user in order to begin the process. Basically i want 3 users to be involved, the first generates a requisition and saves as draft, the second confirms the draft report through a button and the third approves the report. How can i go about this? Thanks in anticipation :)
You have to create 3 Users Groups for managing the access rights, the first group can create the requisition, the second can confirm it, and the third one can approve it::
- First Group: yourbusinessprocess_requisition.group_yourbusinessprocess_requisition_create
- The second Group: yourbusinessprocess_requisition.group_yourbusinessprocess_requisition_confirm
- And the third Group: yourbusinessprocess_requisition.group_yourbusinessprocess_requisition_approve
Give the needed access rights to each group.
Link your users to one of those Groups
A good and a complete example can be found in the following modules:
The process https://www.odoo.com/apps/purchase_requisition/ and the double validation https://www.odoo.com/apps/7.0/purchase_requisition_double_validation/
(Lines added after comment by Sam)
In this case just add (in your xml view file):
<attribute name="groups">yourbusinessprocess_requisition.group_yourbusinessprocess_requisition_create</attribute>, and so on after each Button (Repeat for each button, and just change create by approve, and confirm).
Don't forget to create the security folder and file (just copy the same file from the provided link and change the name of the process.
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: 8/21/14, 12:31 PM|
|Seen: 840 times|
|Last updated: 3/16/15, 8:10 AM|