跳至内容
菜单
此问题已终结
2 回复
8618 查看

Impacted versions:
Odoo 16
Steps to reproduce:
Update module website from console
./odoo-bin -u website
Update a custom module from the console that has the website dependency
./odoo-bin -u custom_module


Traceback (most recent call last):
File "/odoo/odoo-server/odoo/http.py", line 1994, in __call__
response = request._serve_db()
File "/odoo/odoo-server/odoo/http.py", line 1563, in _serve_db
self.registry = Registry(self.db).check_signaling()
File "/odoo/odoo-server/odoo/modules/registry.py", line 66, in __new__
return cls.new(db_name)
File "", line 2, in new
File "/odoo/odoo-server/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/odoo/odoo-server/odoo/modules/registry.py", line 90, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/odoo/odoo-server/odoo/modules/loading.py", line 484, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/odoo/odoo-server/odoo/modules/loading.py", line 372, in load_marked_modules
loaded, processed = load_module_graph(
File "/odoo/odoo-server/odoo/modules/loading.py", line 304, in load_module_graph
module.write({'state': 'installed', 'latest_version': ver})
File "/odoo/odoo-server/addons/website/models/ir_module_module.py", line 79, in write
if request and request.db and request.context.get('apply_new_theme'):
File "/usr/local/lib/python3.8/dist-packages/werkzeug/local.py", line 348, in __getattr__
return getattr(self._get_current_object(), name)
File "/odoo/odoo-server/odoo/http.py", line 1216, in context
return self.env.context
AttributeError: 'NoneType' object has no attribute 'context'

形象
丢弃

Facing same error, please tag me know if you get the solution

最佳答案

Hi,

Yo have to specify the database name by passing -d db_name along with ./odoo-bin -u custom_module

 sample: ./odoo-bin -u custom_module -d mydb

 Thanks

形象
丢弃
最佳答案

Specify db name by adding -d dbname

形象
丢弃
相关帖文 回复 查看 活动
1
7月 23
2791
2
10月 24
6677
2
9月 24
4595
1
5月 24
909
2
3月 24
2474