Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
8658 Visualizzazioni

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
Abbandona

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

Risposta migliore

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
Abbandona
Risposta migliore

Specify db name by adding -d dbname

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 23
2804
2
ott 24
6693
2
set 24
4606
1
mag 24
911
2
mar 24
2489