Odoo Help

Welcome!

This community 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.

1

Restrain the user from confirming the Purchase requisition

By
Viney
on 2/21/14, 4:49 AM 1,107 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.

1

Prakash

--Prakash--
3173
| 5 4 7
Bikaner, India
--Prakash--

OpenERP Devloper at SunARC Technology

Prakash
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.

Viney
on 2/21/14, 7:30 AM

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

Prakash
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?

Viney
on 2/24/14, 2:35 AM

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

Prakash
on 2/24/14, 2:45 AM

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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