gpt4 book ai didi

Odoo 12 : Changes are not visible when updating existing module

转载 作者:行者123 更新时间:2023-12-05 07:08:28 27 4
gpt4 key购买 nike

我正在尝试更新 website_ajax_login 模块 中模板名称 ajax_login_template.xml 中的一些静态文本。

我已经恢复了一个现有的转储文件,没有任何错误。

问题是在 developer mood 更新应用后我看不到变化。

但是当我使用新数据库而不是转储版本并全新安装 website_ajax_login_module 时,更改会按预期显示。为了简化我的问题和我所做的如下:

First Attempt

Step 1 -> Restore dump file into a database.

Step 2 -> Update template.xml file

Step 3 -> Activate Developer Mood and upgrade the App. i.e. `website_ajax_login`

Result ===> Changes Not Visible.

Also if I click on top menu item "Customize -> HTML/CSS editor". No windows open at the right side of the screen.

Second Attempt

Step 1: Go to web database manager view
Step 2: Create a database (not restore list in the first attempt)

Step 3: Install website_ajax_login app

Result ====> Changes Visible I made in the template.xml file.

if I click on top menu item "Customize -> HTML/CSS editor". The window opens on the right side of the screen without any problem.

此错误是否涉及缓存等。使用我的数据库的转储版本时,我看到错误日志如下。

2020-05-18 10:58:57,541 127210 INFO archixpress odoo.addons.base.models.ir_attachment: _read_file reading /home/shahzeb/.local/share/Odoo/filestore/archixpress/bd/bdbf3e6ea7597eb4b2305c7e8e083430facaa1b2 
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/api.py", line 1039, in get
value = self._data[key][field][record._ids[0]]
KeyError: 38054
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/fields.py", line 976, in __get__
value = record.env.cache.get(record, self)
File "/opt/odoo/odoo/odoo/api.py", line 1041, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('ir.attachment(38054,).datas', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/shahzeb/Projects/Wiztech/odoo/odoo/odoo/addons/base/models/ir_attachment.py", line 113, in _file_read
r = base64.b64encode(open(full_path,'rb').read())
FileNotFoundError: [Errno 2] No such file or directory: '/home/shahzeb/.local/share/Odoo/filestore/archixpress/bd/bdbf3e6ea7597eb4b2305c7e8e083430facaa1b2'
2020-05-18 10:58:57,561 127210 INFO archixpress werkzeug: 127.0.0.1 - - [18/May/2020 10:58:57] "GET /web/image/38054/160x160/ HTTP/1.1" 304 - 5 0.009 0.041
2020-05-18 10:58:57,575 127210 INFO archixpress odoo.addons.base.models.ir_attachment: _read_file reading /home/shahzeb/.local/share/Odoo/filestore/archixpress/26/269f4b4e91c4bc57d9d535ad3c8fcd907d975031
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/api.py", line 1039, in get
value = self._data[key][field][record._ids[0]]
KeyError: 38056
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/fields.py", line 976, in __get__
value = record.env.cache.get(record, self)
File "/opt/odoo/odoo/odoo/api.py", line 1041, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('ir.attachment(38056,).datas', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/shahzeb/Projects/Wiztech/odoo/odoo/odoo/addons/base/models/ir_attachment.py", line 113, in _file_read
r = base64.b64encode(open(full_path,'rb').read())
FileNotFoundError: [Errno 2] No such file or directory: '/home/shahzeb/.local/share/Odoo/filestore/archixpress/26/269f4b4e91c4bc57d9d535ad3c8fcd907d975031'
2020-05-18 10:58:57,578 127210 INFO archixpress werkzeug: 127.0.0.1 - - [18/May/2020 10:58:57] "GET /web/image/38056/160x160/ HTTP/1.1" 304 - 5 0.009 0.041
2020-05-18 10:58:58,001 127210 INFO archixpress werkzeug: 127.0.0.1 - - [18/May/2020 10:58:58] "POST /web/dataset/call HTTP/1.1" 200 - 3 0.051 0.032
2020-05-18 10:58:58,079 127210 INFO archixpress werkzeug: 127.0.0.1 - - [18/May/2020 10:58:58] "POST /website/translations HTTP/1.1" 200 - 12 0.116 0.142
2020-05-18 10:58:58,095 127210 INFO archixpress odoo.addons.base.models.ir_attachment: _read_file reading /home/shahzeb/.local/share/Odoo/filestore/archixpress/cd/cd5a21b5fca4934040122813fb0d1214003f6ca7
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/api.py", line 1039, in get
value = self._data[key][field][record._ids[0]]
KeyError: 38113
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/fields.py", line 976, in __get__
value = record.env.cache.get(record, self)
File "/opt/odoo/odoo/odoo/api.py", line 1041, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('ir.attachment(38113,).datas', None)
During handling of the above exception, another exception occurred:

作为测试,我创建了一个新模块,新模块一切正常。

最佳答案

有一个类似的问题,因为有人使用 Odoo 内部的调试工具改变了 View 。可以在这个问题上找到解决方案:https://stackoverflow.com/a/43650510

关于Odoo 12 : Changes are not visible when updating existing module,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61868892/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com