Search 1.9 billion lines of Odoo code on GitHub

web_edit_button_conditional_disable

Author: Camptocamp, Onestein, Avoin.Systems, Odoo Community Association (OCA)
License: AGPL-3
Branch: 15.0
Repository: avoinsystems/avoinsystems-addons
Dependencies: web
Languages: JavaScript (32, 39.5%), Python (20, 24.7%), and reStructuredText (29, 35.8%)
Other branches: migrate-invoice-delivery-date, and web-edit-button-conditional-disable

<h1 class="title">Web Edit Button Conditional Disable</h1> <p>This module introduces a mechanism for disabling editing on a form view based on a field on the record.</p> <a name="usage"></a> <h2>Usage</h2> <p>This module only implements the form view mechanism for disabling editing, but does not introduce any conditions to any models. Other modules that depend on this one can define a boolean field <cite>should_disable_form_edit</cite> on any model, which will then used to determine if the form view's edit should be disabled. To have an effect, the field must be present on the form view.</p> <p>When the field's value is <cite>true</cite> on the form view, the edit button will be disabled, as well as quick editing.</p> <a name="credits"></a> <h2>Credits</h2> <p>This module is based on Odoo Community Association's (OCA's) <a class="reference external" href="https://github.com/OCA/web/tree/14.0/web_access_rule_buttons">web_access_rule_buttons</a> -module.</p> <a name="authors"></a> <h3>Authors</h3> <ul class="simple"> <li>Camptocamp (web_access_rule_buttons)</li> <li>Onestein (web_access_rule_buttons)</li> <li>Avoin.Systems</li> </ul> <a name="contributors"></a> <h3>Contributors</h3> <ul class="simple"> <li>Guewen Baconnier &lt;<a class="reference external" href="mailto:guewen.baconnier&#64;camptocamp.com">guewen.baconnier&#64;camptocamp.com</a>&gt;</li> <li>Antonio Esposito &lt;<a class="reference external" href="mailto:a.esposito&#64;onestein.nl">a.esposito&#64;onestein.nl</a>&gt;</li> <li>Dhara Solanki &lt;<a class="reference external" href="mailto:dhara.solanki&#64;initos.com">dhara.solanki&#64;initos.com</a>&gt;</li> <li>Santeri Valjakka &lt;<a class="reference external" href="mailto:santeri.valjakka&#64;avoin.systems">santeri.valjakka&#64;avoin.systems</a>&gt;</li> </ul>