Hi,
How to make an existing action button invisible only for specific group of users? I have created a new user group and i want to be invisible the button with type action for that specific users.I need to apply on the button Update quantity on hand(action_view_change_product_quantity). Am using Odoo 11 community.
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
Hi,
For making the update quantity on hand button invisible to your custom group, you can follow the example below
<record model="ir.ui.view" id="product_template_form_view_procurement_button">
<field name="model">product.template</field>
<field name="inherit_id" ref="stock.product_template_form_view_procurement_button"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='%(stock.action_view_change_product_quantity)d']" position="attributes">
<attribute name="groups">!specify here the user group that no need to see the button</attribute>
</xpath>
</field>
</record>
Regards
Hello Dear Sergio
Please check with Ex., I think it's helpful for you.
<xpath expr="/form/header/button[@name='%(action_view_change_product_quantity)d']" position="replace">
<button name="%(action_view_change_product_quantity)d" string="Update Qty On Hand" type="action" groups=" Your Group"/>
</xpath>
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
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 | |
---|---|---|---|---|
|
2
jul. 24
|
2683 | ||
|
1
jun. 24
|
5145 | ||
|
1
okt. 23
|
10854 | ||
|
1
okt. 23
|
98 | ||
413 Request Entity Too Large
Opgelost
|
|
1
aug. 23
|
2193 |