I need to make invisible the bar that contains "check availability" to inventory users (after pressing the "mark 'to do'" button). But it must be visible to the inventory manager.
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
This question has been flagged
Hi,
By default the button is visible for all the users. If you check the code of the button you can see a groups attribute along with the button in it the given group is base.group_user, so that it will be visible for all the internal users.
You can inherit the button and change the group to the group of the inventory manager or edit and change the group from the front end.
To change it from the front end activate the developer mode and click the debugger button and click the Edit Form view and inside the Architecture page of the opening wizard you can see the button Check Availability with the name action_assign , here change the groups to stock.group_stock_manager.
If you are looking to change the same by a custom module by inheriting you can check the below code:
<record id="picking_form_inherit" model="ir.ui.view">
<field name="name">contacts.custom.fields</field>
<field name="model">stock.picking</field>
<field name="type">form</field>
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml"><xpath expr="//button[@name='action_assign']" position="attributes">
<attribute name="groups">stock.group_stock_manager</attribute>
</xpath></field>
</record>
Thanks
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
Odoo Mail Sending Limit
Solved
|
|
2
Dec 23
|
11993 | |
|
0
Oct 23
|
33 | ||
|
3
Oct 23
|
787 | ||
|
1
Oct 23
|
569 | ||
|
1
Aug 23
|
978 |
For Customization in modules have a look into: http://learnopenerp.blogspot.com