
odoo错误分析
信息化未来
Python爱好者odoo
展开
-
odoo SyntaxWarning: invalid escape sequence ‘\w‘
如果你在处理正则表达式,通常使用原始字符串更为方便,因为正则表达式中经常使用反斜杠,而原始字符串可以避免很多转义相关的问题。函数(或任何类似的自定义警告处理函数)会在你的代码或你使用的库中遇到需要警告用户的情况时被调用。:如果代码中存在可能导致错误或意外行为的潜在问题,开发者可能会使用警告来提醒用户注意。:在处理可能涉及安全风险的操作时,软件可能会使用警告来提醒用户注意潜在的安全问题。:当代码使用了即将被弃用或已经弃用的功能时,库可能会调用警告函数来通知用户。原创 2024-08-25 21:53:43 · 4570 阅读 · 0 评论 -
odoo16版本的render变更
odoo16的ir_ui_view.py中_render方法不见了,引用出错AttributeError: 'ir.ui.view' object has no attribute '_render'今天在整理文件上传功能时,发现。仔细一追,变的还不少。原创 2024-05-23 19:12:16 · 585 阅读 · 0 评论 -
安装odoo17 Windows版时,PostgreSQL Database无法被勾选
安装odoo17 Windows版时,PostgreSQL Database无法被勾选。出现的原因是,曾经安装过PostgreSQL Database;虽然可能已被卸载,但注册表内还有残余信息,导致odoo认为PostgreSQL Database仍存在于系统之中。原创 2023-12-13 15:08:18 · 1312 阅读 · 0 评论 -
未捕获的承诺 > Missing field string information for the field ‘auth_oauth_google_enabled‘ from the ‘res.co
未捕获的承诺 > Missing field string information for the field 'auth_oauth_google_enabled' from the 'res.config.settings' model。查下源码,发现重装“OAuth2身份验证”可以正常使用了,但登录界面多了个官方登录,可能是某个模块修改设置时把相关字段替掉了。卸载此模块后,错误提示消失,正常使用了。odoo16 点击设置时出现错。原创 2023-08-01 10:46:38 · 853 阅读 · 2 评论 -
odoo16 AttributeError: type object ‘BaseModel‘ has no attribute ‘fields_view_get‘
缓存视图数据,提升性能,fields_view_get() 改为 get_views() ,同时使用缓存对视图数据进行保存。来注入域和上下文,渲染组件,例如:动态调整domian、动态增加field字段的显示、修改field字段的属性等。原先写的代码,要进行转换,现在升级16后,不转换即可使用了。Odoo 15模块使用了很多方法。1、动态增加或调整domain。2、动态增加field字段展示。3、修改field字段的属性。网查下:odoo16目前。原创 2023-07-31 20:45:33 · 474 阅读 · 0 评论 -
shutil.copyfile PermissionError: [Errno 13] Permission denied
File "G:/od15/调试/翻译文件更换/更新翻译po文件.py", line 42, in 出现以上错误,主要是copyfile()的参数为文件夹引起,更换成文件就可以了。原创 2023-03-06 21:46:17 · 1428 阅读 · 0 评论 -
pysql public.res_partner 数据表备份血的教训 postgres数据库
pysql public.res_partner 数据表备份血的教训pg_dump -U shiyan -t public.res_partner -f ddd.sqlpg_dump -F custom -U shiyan -t public.res_partner -f ddd.sql以insert语句的形式导出数据表pg_dump -F custom -U shiyan -t public.res_partner -f ddd.sql --column-inserts x031原创 2021-05-19 23:35:22 · 142 阅读 · 0 评论 -
odoo.addons.base.models.ir_ui_view: Error-prone use of @class in view 省市区 (xxx): use the hascla
odoo.addons.base.models.ir_ui_view: Error-prone use of @class in view 省市区 (xxx): use the hasclass(*classes) function to filter elements by their classes警告去除法<xpath expr="//div[hasclass('o_address_format')]" position="replace">原创 2021-05-19 23:11:59 · 327 阅读 · 0 评论 -
odoo.addons.base.models.ir_actions_report: Generating PDF on Windows platform require DPI >= 96. Usi
Message: '下载文件url'Arguments: ('/report/pdf/xx_pdf/23,24',)2021-05-14 02:42:01,300 6800 INFO odoo.addons.base.models.ir_actions_report: Generating PDF on Windows platform require DPI >= 96. Using 96 instead.网上有文说如下设置,但不起作用,出现如下警告,去除后没用了,12有此问题,13..原创 2021-05-14 11:12:04 · 800 阅读 · 0 评论 -
应收账款和应付账款字段无效
在使用Odoo的过程中,安装Odoo模块会出现字段无效,如采购模块安装后解决添加客户的时候就会提示应收账款和应付账款字段无效。字段无效是因为采购模块依赖财务模块,而odoo默认不安装科目表,导致应收账款和应付账款科目无数据。解决方法是根据企业适用的会计准则,以下两个模块中安装一个:l10n_cn_standard(中国企业会计准则)l10n_cn_small_business(中国小企业会计科目表)以上就是采购模块安装后解决添加客户的时候就会提示应收账款和应付账款字段无效的解决方案。.原创 2021-04-20 08:31:35 · 833 阅读 · 0 评论 -
odoo.tools.convert.ParseError: “Document is empty, line 1, column 1“ while parsing file:
odoo.tools.convert.ParseError: "Document is empty, line 1, column 1" while parsing file:最后发现,程序安装错误时,我把一个文件删除了,再升级一直出现此问题,最后卸载后重新安装解决原创 2021-04-02 20:48:16 · 1085 阅读 · 0 评论 -
odoo raise Exception(“Cannot update missing record %r“ % xid)
File "G:\xxx\odoo\tools\convert.py", line 527, in _tag_record raise Exception("Cannot update missing record %r" % xid)odoo.tools.convert.ParseError: "Cannot update missing record 'dzjl.xxx_action_windows'" while parsing file:/xxxxx/xxxxl.xml:1, near...原创 2021-03-04 18:23:04 · 529 阅读 · 2 评论 -
odoo.modules.loading: The transient model xxxx should not have explicit access rules!
odoo.modules.loading: The transient model xxxxshould not have explicit access rules!ir.model.access.csv文件里搜完了,也没有,为何还提醒呢最后在前端,查询该模型,原来建立了相应的权限,以后注意批量增加权限时,注意去掉瞬态模型...原创 2021-03-02 14:32:33 · 395 阅读 · 0 评论 -
“View inheritance may not use attribute ‘string‘ as a selector.
"View inheritance may not use attribute 'string' as a selector.视图继承不能将属性“string”用作选择器。在page中增加name属性可用原创 2021-03-02 12:46:06 · 332 阅读 · 0 评论 -
postgresql错误解决 ERROR:current transaction is aborted
def fieldbyname(self, namestr): try: self.env.cr.execute("SELECT "+namestr+" FROM dzjl_muoban WHERE id=%s", [self.id]) c_id = self.env.cr.fetchone() # print(c_id) # print(namestr) return c_id.原创 2021-03-01 15:58:00 · 12523 阅读 · 0 评论 -
Odoo 13 Error Js “Could not find client action”
Odoo 13 : Error Js “Could not find client action”最后发现是js位置插入时在引用后不行,找不到id="zdingyi_js_Backend" name="dingyi_js Backend" inherit_id="web.assets_backend">expr="//script[contains(@src, '/web/static/src/js/chrome/abstract_action.js')]" position="after原创 2021-02-25 22:12:08 · 470 阅读 · 0 评论 -
The server is busy right now, module operations are not possible at this time, please try again late
The server is busy right now, module operations are not possible at this time, please try again later.真怪,特此记录,模块卸载不掉,安装安装不上??原创 2021-02-21 21:25:37 · 782 阅读 · 2 评论 -
odoo TypeError: Model ‘project.task‘ does not exist in registry.
TypeError: Model 'project.task' does not exist in registry.出现此类错误,原以为数据库有半拉的,不能加载了,在数据库中乱删除了自认为相关记录,一样出错仔细分析,原来是depends支持里写错了,改成“project‘可以了...原创 2021-02-19 11:08:10 · 1088 阅读 · 0 评论 -
ModuleNotFoundError: No module named ‘odoo.addons.web‘
2021-02-18 11:12:39,496 1232 ERROR ? odoo.service.server: Failed to load server-wide module `web`.The `web` module is provided by the addons found in the `openerp-web` project.Maybe you forgot to add those addons in your addons_path configuration.Trace.原创 2021-02-18 19:16:21 · 5171 阅读 · 1 评论 -
ValueError: 父视图中没有找到元素 ‘<field name=“tracking“ invisible=“1“>‘
把此句注释掉,行了原创 2021-02-18 12:08:39 · 264 阅读 · 0 评论 -
tempw.docx\n未指定的错误\n\n位置: 部分: /word/document.xml, 行: 2, 列: 133547 时遇到错误‘,
doc = word.Documents.Open(input_file) File "<COMObject <unknown>>", line 8, in Openpywintypes.com_error: (-2147352567, '发生意外。', (0, 'Microsoft Word', 'Word 在处理 XML 文件 tempw.docx\n未指定的错误\n\n位置: 部分: /word/document.xml, 行: 2, 列: 133547 时遇到错误', .原创 2021-02-02 12:21:12 · 1990 阅读 · 5 评论 -
ValueError: invalid literal for int()
template = self.env['mail.template'].browse(int(template_id))ValueError: invalid literal for int() with base 10: 'mailbox_inbox'最后发现是当地ie缓存之事引起原创 2021-02-02 09:56:28 · 199 阅读 · 0 评论 -
cannot import name ‘_fitz‘ from ‘fitz‘
cannot import name '_fitz' from 'fitz'# pip install PyMuPDF,这样就安装了PyMuPDF模块,然后fitz就能正常使用上次这样可用,这次却不成,无意试下面的pip install fitz结果竟能安装了,与上次的安不上,正好相反了...原创 2020-12-01 21:23:52 · 1206 阅读 · 0 评论 -
pandas 出错,ValueError: embedded null byte
File "E:\xxx13\venv\lib\site-packages\pandas\__init__.py", line 32, in <module> from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib File "E:\xxx13\venv\lib\site-packages\pandas\_libs\__init__.py", line 3, in <modul...原创 2020-10-28 20:07:14 · 1433 阅读 · 0 评论