[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>
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user