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
2022-02-02 :
Odoo 异步任务队列 task_queue 基于 celery 的使用
2021-04-30 :
微信模块 Oejia_wx v0.6.4 发布,增强模板消息功能,增加hr员工、部门和企业微信的协同
2020-09-30 :
微信模块 Oejia_wx v0.6.3 发布,多项兼容优化,即将全面适配 Odoo14
2018-08-31 :
Odoo 中的 domain 的解析及各种使用例子
2018-05-04 :
微信模块 Oejia_wx v0.5.1 发布,优化聊天会话缓存及多db模式的支持
2018-03-15 :
微信模块 Oejia_wx v0.5 发布,支持 Odoo11
2018-01-23 :
Odoo 视图之 act_window
2016-02-21 :
Odoo 权限控制解析及 eval 详解
2016-01-19 :
Odoo 的重要对象 Environment (env) 简析
2014-12-15 :
Cordova开发环境搭建与基本使用
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架子