Odoo Ayuda

0

0
2 Answers
0

Hi Santos,

You can hide the edit and create buttons conditionally using record rule. You need to set a domain in record rule.

 

<record model="ir.rule" id="reference_id">

<field name="name">reference name</field>

<field name="model_id" ref="model_model_name"/>

<field eval="0" name="perm_unlink"/>

<field eval="0" name="perm_write"/>

<field eval="1" name="perm_read"/>

<field eval="0" name="perm_create"/>

<field name="domain_force">[ ('state','in',['open','paid'])]</field>

</record>

 

Realizar una pregunta
Writer
Etiquetas
Keep Informed
1 seguidor(es)
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