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 1ab61ef commit e40eadd9b8681beb34fa88f1189a73d3ae21b080
Showing with 5 additions and 5 deletions.
  1. +5 −5 addons/web/static/src/xml/base.xml
@@ -336,17 +336,17 @@
<t t-name="ListView.buttons">
<t t-if="!widget.no_leaf and widget.options.action_buttons !== false">
<div class="o_list_buttons">
<t t-if="widget.options.addable and widget.is_action_enabled('create')">
<button type="button" class="btn btn-primary btn-sm o_list_button_add" accesskey="c">
<t t-esc="widget.options.addable"/>
</button>
</t>
<button type="button" class="btn btn-primary btn-sm o_list_button_save" accesskey="s">
Save
</button>
<button type="button" class="btn btn-default btn-sm o_list_button_discard" accesskey="j">
Discard
</button>
<t t-if="widget.options.addable and widget.is_action_enabled('create')">
<button type="button" class="btn btn-primary btn-sm o_list_button_add" accesskey="c">
<t t-esc="widget.options.addable"/>
</button>
</t>
</div>
</t>
</t>

0 comments on commit e40eadd

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