Odoo16 SyntaxError: Failed to execute 'querySelectorAll' on 'Element': 'footer:not(field footer)' is not a valid selector - Oejia 技术栈,企业方案分享、Odoo顾问
Oejia 技术栈
主页
分享
微信模块
索引
关于
订阅
编辑器
登录
Odoo16 SyntaxError: Failed to execute 'querySelectorAll' on 'Element': 'footer:not(field footer)' is not a valid selector
admin
on 2023-01-12 14:10:14
访问 odoo16 表单页时如果出现如题的报错,一般是由于浏览器的兼容性问题导致的,比如在微信内的浏览器内访问就容易出现这个问题,解决方案 修改odoo如下文件代码: ``` /usr/lib/python3/dist-packages/odoo/addons/web/static/src/views/form/form_controller.js ``` 将 ``` const footers = [...this.archInfo.xmlDoc.querySelectorAll("footer:not(field footer)")]; ``` 改为 ``` let footers = [] try{ footers = [...this.archInfo.xmlDoc.querySelectorAll("footer:not(field footer)")]; }catch(err){ footers = [] } ``` 参考相关commit https://github.com/odoo/odoo/commit/17a25ee69d75bfd28b8c25fb82e32c8bb9f8f611
Information
Odoo16 SyntaxError: Failed to execute 'querySelectorAll' on 'Element': 'footer:not(field footer)' is not a valid selector
http://www.oejia.net/blog/2023/01/12/odoo_error_queryselectorall.html
http://www.oejia.net/raw/2023/01/12/odoo_error_queryselectorall.md
admin
on 2023-01-12 14:10:14
Category
Odoo
Tag
Related
2021-07-28 :
Odoo 用代码模拟表单视图提交创建记录
2021-02-18 :
Odoo 字段定义详解
2020-05-06 :
OE小程序商城订阅消息通知使用说明
2020-03-26 :
OE商城优惠券、秒杀、特价活动模块
2019-03-25 :
Odoo 基于企业微信实现的自建应用审批流功能的配置及使用说明
2018-08-31 :
Odoo 中的 domain 的解析及各种使用例子
2016-07-18 :
Nginx upstream 配置示例
2016-01-25 :
DjangoX 入口启动脚本简析
2016-01-19 :
在 Odoo 中嵌入iframe页的方法
2014-12-15 :
Cordova配置config.xml详解
January 2023
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
分类
Odoo (121)
DjangoX (13)
后端HTTP (7)
YouMd (4)
移动开发 (4)
Django (3)
前端 (2)
JS (2)
公告说明 (2)
Python (1)
Nginx (1)
桌面UI (1)
异常处理 (1)
官方公众号
关注公众号实时咨询我们
About This Entry
企业微信错误码:60020 的处理
About This Blog
main index
to find recently
archives
to find all
标签
微信模块发布记录
微信模块
小程序商城
Python
Web
Http
客服系统
OE商城
Cordova
审批OA
HTML5
Markdown
解析
DjangoX
ExtJS
示例
Excel
JS
新年
PyQT
扩展开发
YouPBX
服系统
最近发布
SyntaxError: Failed to execute 'querySelectorAll' on 'Element': 'footer:not(field footer)' is not a valid selector
企业微信错误码:60020 的处理
在 Odoo 中使用 WebSocket 并兼容Odoo的Session会话识别
Odoo 让 server action 显示到指定的视图上
Odoo 增加树形列表视图的支持
Odoo 16 正式发布时间
Odoo 企业微信之日历、日程的同步
钉钉消息通知及审批功能的使用说明
Odoo 客户管理之微信定位模块
AccessError: (u'Database fetch misses ids ((1,))) and has extra ids (1), may be caused by a type incoherence in a previous request'
Friend Links
Oejia技术梦博客分享
YouMd,爱上MarkDown
Mole轻量级wsgi架子