Hi everyone, i just want to ask on how to hide the edit and create buttons on a form view depending on a condition in odoo 10. I made a two menus with the same model, and I want to hide the edit and create buttons on the form of the records in one of the menus. Thank you very much. Hoping for your response.
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
1
Beantwoorden
2083
Weergaven
Hi
You can create record rules, and add the condition inside the Domain
Please try like this example
<record id="portal_sale_order_user_rule" model="ir.rule">
<field name="name">Portal Personal Quotations/Sales Orders</field>
<field name="model_id" ref="sale.model_sale_order"/>
<field name="domain_force">[('message_partner_ids','child_of',[user.commercial_partner_id.id])]</field>
<field name="groups" eval="[(4, ref('base.group_portal'))]"/>
<field eval="0" name="perm_unlink"/>
<field eval="0" name="perm_write"/>
<field eval="1" name="perm_read"/>
<field eval="0" name="perm_create"/>
</record>
Hope this help
Regards
Thank you very much for this Bella James.
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. 25
|
415 | ||
|
0
dec. 24
|
1057 | ||
|
2
okt. 24
|
1151 | ||
|
1
aug. 24
|
2304 | ||
|
2
jul. 24
|
1531 |