Skip to content
Permalink
Browse files

[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.
  • Loading branch information...
svs-odoo committed Apr 18, 2019
1 parent 737ba6a commit 9b343e92039bdc4d0878e167da8469060115f6d7
Showing with 5 additions and 5 deletions.
  1. +5 −5 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>

0 comments on commit 9b343e9

Please sign in to comment.
You can’t perform that action at this time.