Odoo Help


Restrain the user from confirming the Purchase requisition

on 2/21/14, 4:49 AM 1,485 views

Can anybody tell me how to restrict the user from confirming the purchase requisition? In my case when a user is creating a purchase requisition than the user after saving it is able to send it to the supplier rather I want the user to just generate the purchase requisition and let the manager do the remaining works like sending the purchase requisition to the supplier and than receiving the goods. Please help me out. Thanks in advance.




| 5 5 7
Bikaner, India

OpenERP Developer at SunARC Technology

On 2/21/14, 5:20 AM

Default Purchase Order Module purchase_view file form view header button the below code shows:

<button name="purchase_confirm" states="draft" string="Confirm Order"/>
 <button name="purchase_confirm" states="sent" string="Confirm Order" class="oe_highlight"/>

Based on your requirement the below code modify in custom module

<button name="purchase_confirm" states="draft" string="Confirm Order" groups="purchase.group_purchase_manager"/>
 <button name="purchase_confirm" states="sent" string="Confirm Order" class="oe_highlight" groups="purchase.group_purchase_manager"/>

The above code Confirm Order can view only Admin and Manger Group

I searched for Purchase Order XML file but there was no such file. Rather there are two other XML file which are purchase_demo and purchase_view file. Can you tell me where to make the following changes as said by you? Please help me out.

on 2/21/14, 7:30 AM

I updated the answer. You should always prefer to do your modifications in a custom module.

on 2/21/14, 8:10 AM

Sir, I am thankful for your answer but after I tried out the code as said by you in Purchase_view file its still not working and I am facing the same problem. Can you tell me if I need to make any other changes?

on 2/24/14, 2:35 AM

After changing in the xml file update the purchase module in openerp and check the output.

on 2/24/14, 2:45 AM

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 2/21/14, 4:49 AM
Seen: 1485 times
Last updated: 3/16/15, 8:10 AM