[FIX] web: incorrect CSS selector

- When clicking on settings we get a crash for an incorrect
    CSS selector.
    `Caused by: SyntaxError: Element.querySelectorAll: 'footer:not(field footer' is not a valid selector`

    This issue happens on outdated version of Firefox (tested on firefox 78)

closes odoo/odoo#108371

X-original-commit: 68b05bc9911f899a2b8a8c3335af90d9ed8129cb
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Toufik Ben Jaa
2022-12-21 07:59:55 +01:00
parent 036c4a4886
commit 17a25ee69d
@@ -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");