diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-01-05 14:01:48 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-01-06 16:03:09 +0100 |
| commit | 11a4e17c9c129d103d551661ec2b06efeda21bc4 (patch) | |
| tree | eaf38ac551f2ec8521dbdfeda962285b0e4147ec /addons/web/static/src/xml | |
| parent | f64c1c6b7457ca73ac01b6dd3cebdbaa2889baa1 (diff) | |
[IMP] web: add a dialog option to the FieldDomain
Now, the form FieldDomain has an option "dialog" which allows to force
the domain *edition* in a new dialog. This allows the field to be
positioned in smaller area of the form view in some contexts.
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 34387d9f507..47254cebb09 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -669,7 +669,7 @@ t-att-maxlength="widget.field.size"/> </t> -<div t-name="FieldDomain" t-attf-class="o_form_field_domain#{widget.get('effective_readonly') ? '' : ' o_edit_mode'}"> +<div t-name="FieldDomain" t-attf-class="o_form_field_domain#{widget.get('effective_readonly') ? '' : ' o_edit_mode'}#{widget.options.in_dialog ? '' : ' o_inline_mode'}"> <!-- domain selector will be instantiated here --> <div class="o_form_field_domain_panel"> <i class="fa fa-arrow-right"/> @@ -677,6 +677,8 @@ <span class="o_domain_records_count"/> record(s) </button> <span class="text-warning o_domain_error_message hidden"><i class="fa fa-exclamation-triangle"/> Invalid domain</span> + <button t-if="widget.options.in_dialog && !widget.get('effective_readonly')" + class="btn btn-sm btn-primary o_form_field_domain_dialog_button">Edit domain</button> </div> </div> |
