Hi all,,
For the confirmed sale orders, is it possible to hide one of the header buttons for a specific user? in my case, "View Delivery Order"
Thanks in advance..%
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi all,,
For the confirmed sale orders, is it possible to hide one of the header buttons for a specific user? in my case, "View Delivery Order"
Thanks in advance..%
Yes, it is possible. Here is my solution:
In xml using xpath modify attributes of this button, include this func field, smth like this:
<xpath expr="//button[@name='button_name']" position="attributes">
<attribute name="attrs">{'invisible': [('func_field', '=', False)]}</attribute>
</xpath>
Don't forget to add your functional field to stock.picking form view.
Thanks for the response, and here is another way Go to Settings->User Interface->Views and edit "sale.order.form.sale.stock" by changing the groups associated with the button.
<button name="action_view_delivery" string="View Delivery Order" type="object" class="oe_highlight" attrs="{'invisible': ['|','|','|',('picking_ids','=',False),('picking_ids','=',[]), ('state', 'not in', ('progress','manual')),('shipped','=',True)]}" groups="base.group_user"/>
You may change the group which you want to give there users access to the button, so i change it to base.group_sale_manager.
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
0
nov. 23
|
1336 | ||
|
0
feb. 23
|
1792 | ||
|
3
mrt. 18
|
21853 | ||
|
2
jul. 16
|
4583 | ||
|
3
jun. 23
|
4216 |