diff --git a/addons/web/static/src/views/form/form_controller.js b/addons/web/static/src/views/form/form_controller.js index 1d57981c92f..41a1d43b75a 100644 --- a/addons/web/static/src/views/form/form_controller.js +++ b/addons/web/static/src/views/form/form_controller.js @@ -167,7 +167,7 @@ export class FormController extends Component { // select footers that are not in subviews and move them to another arch // that will be moved to the dialog's footer (if we are in a dialog) - const footers = [...this.archInfo.xmlDoc.querySelectorAll("footer:not(field footer")]; + const footers = [...this.archInfo.xmlDoc.querySelectorAll("footer:not(field footer)")]; if (footers.length) { this.footerArchInfo = Object.assign({}, this.archInfo); this.footerArchInfo.xmlDoc = createElement("t");