Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
9613 Prikazi

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'

Avatar
Opusti

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

Best Answer

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

Avatar
Opusti
Best Answer

Specify db name by adding -d dbname

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jul. 23
3646
4
jun. 25
8936
2
okt. 24
7792
2
sep. 24
5221
1
maj 24
1293