Skip to content
Snippets Groups Projects
Commit d2b90152 authored by Raphael Collet's avatar Raphael Collet
Browse files

[IMP] web: in `boolean_button`, move options to inner elements to handle translations

In practice, we replace:

    <field name="active" widget="boolean_button"
        options='{"true": "Active", "false": "Inactive"}'/>

by:

    <field name="active" widget="boolean_button">
        <span class="o_stat_text o_true text-success">Active</span>
        <span class="o_stat_text o_false text-danger">Inactive</span>
    </field>
parent f6a4f5c0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment