diff options
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 385d7bfd48b..8b0fda2b83f 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1211,11 +1211,21 @@ <button type="button" class="oe_formopenpopup-form-close">Cancel</button> </t> <t t-name="ListView.row.frame" t-extend="WidgetFrame"> - <t t-jquery="tr" t-operation="prepend"> - <td><button type="button" class="oe-edit-row-cancel">Cancel</button></td> - </t> - <t t-jquery="tr" t-operation="append"> - <td><button type="button" class="oe-edit-row-save">Save</button></td> + <t t-jquery="tr"> + $(document.createElement('t')) + .append(this.contents()) + .attr({ + 't-foreach': this.attr('t-foreach'), + 't-as': this.attr('t-as') + }) + .replaceAll(this) + .after($(document.createElement('td')).append( + $(document.createElement('button')).attr({ + 'class': 'oe-edit-row-save', 'type': 'button'}).text('Save'))) + .before($(document.createElement('td')).append( + $(document.createElement('button')).attr({ + 'class': 'oe-edit-row-cancel', 'type': 'button'}).text('Cancel'))) + .unwrap(); </t> </t> |
