I want asking something. We are using OpenERP 7 version. Ä°n Purchase Order Overflow;
For user : I want to hide confirm order button. For Administrator : I want to show confirm order button.
Now confirm order button showing everyone.(Users and Administrators)
What can i do for this
Set the groups attribute in the XML tag for that button to filter down to the external/XML ID of the groups you want it to apply to. So for example:
<button name="confirm_order" string="Confirm Order" groups="base.group_erp_manager"/>
This is (in 6.1 at least) the group for Administration Access Rights, but should also apply to users with Configuration permission, since that group is a subset of Access Rights already.
in purchase/purchase_view.xml line 168 :
<button name="purchase_confirm" states="draft" string="Confirm Order" />
add group_purchase_manager for this button:
<button name="purchase_confirm" states="draft" string="Confirm Order" groups="purchase.group_purchase_manager" />
update module purchase .
Settings>>Installed Modules>>Purchase Management and clik
how it works, but it is recommended to create a new module to change the button.
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: 5/14/13, 12:59 PM|
|Seen: 4844 times|
|Last updated: 8/4/16, 4:48 AM|