Search 1.9 billion lines of Odoo code on GitHub

web_custom_modifier

Author: Numigi
License: LGPL-3
Branch: 12.0-web_list_column_text_align
Repository: Numigi/odoo-web-addons
Dependencies: base
Languages: PO File (66, 20.8%), Python (180, 56.8%), XML (45, 14.2%), and reStructuredText (26, 8.2%)
Other branches: 12.0, 14.0, TA#47984, TA#48575, and TA#48575-1

<h1 class="title">Web Custom Modifier</h1> <p>This module allows to customize modifiers on form view nodes.</p> <p>For example, it allows to make a field readonly, invisible or required.</p> <a name="usage"></a> <h2>Usage</h2> <p>As system administrator, I go to <cite>Settings / Technical / User Interface / Custom Modifiers</cite>.</p> <img alt="static/description/custom_modifier_menu.png" src="static/description/custom_modifier_menu.png" /> <p>I create a new custom modifier.</p> <img alt="static/description/new_custom_modifier.png" src="static/description/new_custom_modifier.png" /> <p>The modifier is configured to make the field <code>default_code</code> of a product required.</p> <p>After refreshing my screen, I go to the form view of a product.</p> <p>I notice that the field <code>default_code</code> is required.</p> <img alt="static/description/product_form.png" src="static/description/product_form.png" /> <a name="advanced-usage"></a> <h2>Advanced Usage</h2> <p>In the field <code>Type</code>, I can select <code>Xpath</code>. This allows to set a modifier for a specific view node, such as a button.</p> <img alt="static/description/button_modifier.png" src="static/description/button_modifier.png" /> <p>The example above hides the a button in the form view of a product.</p> <a name="hide-selection-item"></a> <h2>Hide Selection Item</h2> <p>Since version <code>1.1.0</code>, the module allows to hide an item (option) of a selection field.</p> <img alt="static/description/hide_selection_item_modifier.png" src="static/description/hide_selection_item_modifier.png" /> <p>The above example hides the type of address <code>Other</code>.</p> <img alt="static/description/contact_form_without_selection_item.png" src="static/description/contact_form_without_selection_item.png" /> <p>Beware that if the hidden option is already selected on a record, it will look as it was never set.</p> <img alt="static/description/contact_form_type_not_selected.png" src="static/description/contact_form_type_not_selected.png" /> <p>Therefore, this feature should only be used to hide options that are never used.</p> <a name="contributors"></a> <h2>Contributors</h2> <ul class="simple"> <li>Numigi (tm) and all its contributors (<a class="reference external" href="https://bit.ly/numigiens">https://bit.ly/numigiens</a>)</li> </ul>