diff options
| author | Julien Mougenot <jum@odoo.com> | 2019-09-18 10:25:59 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-09-25 07:20:36 +0000 |
| commit | f328b9ca8ce9ef3a8aaa4ce7c513ba7c01929e62 (patch) | |
| tree | 1008549f4a98cf229dff6498ad0d36f71322a10a /addons/web/static/src/xml/base.xml | |
| parent | 6fea5b42d6ddabb83daf95b8d68021b05144cf42 (diff) | |
[IMP] web: list multi edition confirmation modal
Changed the information dipslayed by the confirmation modal in multi edition
in list views.
Before this commit, the modal simply showed a one-line message with the amount of valid records.
Now, there are 3 elements:
- If all of the fields cannot be changed, a first line warns the amount of valid records.
- A second (or first if all fields can be updated) line ensuring that the user is aware of
the occuring changes.
- A table displaying the affected field and the updated value (readonly widget with the new value).
Part of task 1967602
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 5ea1a8e535c..bd4284b0b07 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -281,6 +281,34 @@ </div> </t> +<t t-name="ListView.confirmModal"> + <main role="alert"> + <p> + <t t-if="changes.nbRecords != changes.nbValidRecords"> + Among the <t t-raw="changes.nbRecords"/> selected records, + <t t-raw="changes.nbValidRecords"/> are valid for this update.<br/> + </t> + Are you sure you want to perform the following update on those <t t-raw="changes.nbValidRecords"/> records ? + </p> + <div class="table-responsive"> + <table class="o_modal_changes"> + <tbody> + <tr> + <td>Field:</td> + <td><t t-raw="changes.fieldLabel"/></td> + </tr> + <tr> + <td>Update to:</td> + <td> + <div class="o_changes_widget"/> + </td> + </tr> + </tbody> + </table> + </div> + </main> +</t> + <t t-name="FormView.buttons"> <div class="o_form_buttons_view" role="toolbar" aria-label="Main actions"> <button t-if="widget.is_action_enabled('edit')" type="button" |
