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 :)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
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.
Thanks Med, but can you give more details on how to go about it? the process is already created(indent) i just need to tailor it so it acts like i want it to thanks!
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل