Web Custom Modifier

Enable easily customizing view modifiers.

https://kastor.lab.numigi.net/web/image/product.template/1471/image_1920?unique=0a81b40
  • Odoo Version

Conditions générales
Garantie satisfait ou remboursé de 30 jours
Expédition : 2-3 jours ouvrables

Web Custom Modifier

This module allows to customize modifiers on form view nodes.

For example, it allows to make a field readonly, invisible or required.

Usage

As system administrator, I go to Settings / Technical / User Interface / Custom Modifiers.

static/description/custom_modifier_menu.png

I create a new custom modifier.

static/description/new_custom_modifier.png

The modifier is configured to make the field default_code of a product required.

After refreshing my screen, I go to the form view of a product.

I notice that the field default_code is required.

static/description/product_form.png

Advanced Usage

In the field Type, I can select Xpath. This allows to set a modifier for a specific view node, such as a button.

static/description/button_modifier.png

The example above hides the a button in the form view of a product.

Hide Selection Item

Since version 1.1.0, the module allows to hide an item (option) of a selection field.

static/description/hide_selection_item_modifier.png

The above example hides the type of address Other.

static/description/contact_form_without_selection_item.png

Beware that if the hidden option is already selected on a record, it will look as it was never set.

static/description/contact_form_type_not_selected.png

Therefore, this feature should only be used to hide options that are never used.

Force Save

Since version 1.2.0 of the module, a new option Force Save is available.

static/description/force_save_modifier.png

This modifier may be used along with the Readonly modifier so that the field value is saved to the server.

Excluded Groups

Since version 1.3.0 of the module, a new field Excluded Groups is available.

static/description/excluded_groups.png

If at least one group of users is selected, the modifier is not applied for users that are member of any of these groups.

This is useful when rendering an element readonly or invisible only for a subset of users.

Custom Widget

Since version 1.4.0 of the module, it is possible to customize the widget used for a given field.

static/description/custom_widget.png static/description/task_form_with_custom_widget.png

Number of lines per page (List Views)

Since version 1.5.0, a new modifier is added to set the number of lines per page in list view.

In the following example, we set a limit of 20 sale order lines per page on a sale order form view.

static/description/number_lines_per_page_modifier.png

Result:

static/description/sale_order_with_limited_sol_per_page.png

Contributors