I have a problem when upgrading my Odoo application on odoo.sh. The error log said:
`
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/service/server.py", line 1289, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "", line 2, in new
File "/home/odoo/src/odoo/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/modules/registry.py", line 91, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 478, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 371, in load_marked_modules
loaded, processed = load_module_graph(
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 196, in load_module_graph
model_names = registry.load(cr, package)
File "/home/odoo/src/odoo/odoo/modules/registry.py", line 241, in load
model = cls._build_model(self, cr)
File "/home/odoo/src/odoo/odoo/models.py", line 643, in _build_model
raise TypeError("Model %r does not exist in registry." % name)
TypeError: Model 'stock.production.lot' does not exist in registry.
`
Even though I've already added stock
module on depends
on __manifest__.py
in my custom module. Also, I've tried to upgrade my custom module on my local machine, and it works! Am I missing something during upgrading my application on odoo.sh?
just try by increasing the version number of the module and also by clicking update app list menu