diff options
| author | svs-odoo <svs@odoo.com> | 2019-04-18 13:56:40 +0000 |
|---|---|---|
| committer | svs-odoo <svs@odoo.com> | 2019-05-29 14:03:29 +0000 |
| commit | aae6b3c337bdab3d62dd517b416a0a7b080ed248 (patch) | |
| tree | 88fb03211cf805eafb4583ac9fa7f05131a2583c /addons/web/static | |
| parent | 19c48161734234256d85c6836a0ebc0668a71181 (diff) | |
[FIX] base_import: Import button at last position
In List View, the Import button is placed after the Create button.
Before this commit, in a list editable in edit mode, the Create button
is hidden and the Save & Discard buttons are displayed.
But as the Create button was placed before the Save button, the Import
button will appear at the first position.
With this commit, the Create button is now placed after the Discard
button. In this way the Import button will be always the last button and
its position will not change when we switch between edit and read modes.
closes odoo/odoo#32613
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/web/static')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 400c88632c4..77e8ab075b1 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -373,17 +373,17 @@ <t t-name="ListView.buttons"> <div class="o_list_buttons" role="toolbar" aria-label="Main actions"> - <t t-if="widget.is_action_enabled('create')"> - <button type="button" class="btn btn-primary o_list_button_add" accesskey="c"> - Create - </button> - </t> <button type="button" class="btn btn-primary o_list_button_save" accesskey="s"> Save </button> <button type="button" class="btn btn-secondary o_list_button_discard" accesskey="j"> Discard </button> + <t t-if="widget.is_action_enabled('create')"> + <button type="button" class="btn btn-primary o_list_button_add" accesskey="c"> + Create + </button> + </t> </div> </t> |
