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.
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.
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: 5/14/13, 12:59 PM|
|Seen: 6705 times|
|Last updated: 8/4/16, 4:48 AM|