Facing this error while installing a module in odoo13. This module ran in odoo12 properly without any issues.
Any insights on how to resolve this issue or leads to look at?
2022-05-10 12:37:17,518 63394 ERROR odoodb13 odoo\.modules\.registry:\ Failed\ to\ load\ registry\
Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/modules/registry\.py",\ line\ 87,\ in\ new
\ \ \ \ odoo\.modules\.load_modules\(registry\._db,\ force_demo,\ status,\ update_module\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/modules/loading\.py",\ line\ 426,\ in\ load_modules
\ \ \ \ processed_modules\ \+=\ load_marked_modules\(cr,\ graph,
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/modules/loading\.py",\ line\ 313,\ in\ load_marked_modules
\ \ \ \ loaded,\ processed\ =\ load_module_graph\(
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/modules/loading\.py",\ line\ 202,\ in\ load_module_graph
\ \ \ \ registry\.init_models\(cr,\ model_names,\ \{'module':\ package\.name\},\ new_install\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/modules/registry\.py",\ line\ 377,\ in\ init_models
\ \ \ \ func\(\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/models\.py",\ line\ 381,\ in\ _reflect
\ \ \ \ self\.env\['ir\.model\.fields'\]\._reflect_model\(self\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_model\.py",\ line\ 931,\ in\ _reflect_model
\ \ \ \ ids\ =\ query_insert\(cr,\ self\._table,\ to_insert\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_model\.py",\ line\ 57,\ in\ query_insert
\ \ \ \ cr\.execute\(query,\ params\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/sql_db\.py",\ line\ 173,\ in\ wrapper
\ \ \ \ return\ f\(self,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/sql_db\.py",\ line\ 250,\ in\ execute
\ \ \ \ res\ =\ self\._obj\.execute\(query,\ params\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo13env/lib/python3\.8/site\-packages/psycopg2/extensions\.py",\ line\ 120,\ in\ getquoted
\ \ \ \ pobjs\ =\ \[adapt\(o\)\ for\ o\ in\ self\._seq\]
\ \ File\ "/home/shani/fynarfin/odoo13/odoo13env/lib/python3\.8/site\-packages/psycopg2/extensions\.py",\ line\ 120,\ in\
\ \ \ \ pobjs\ =\ \[adapt\(o\)\ for\ o\ in\ self\._seq\]
psycopg2\.ProgrammingError:\ can't\ adapt\ type\ 'dict'
2022\-05\-10\ 12:37:17,520\ 63394\ ERROR\ odoodb13\ odoo\.http:\ Exception\ during\ JSON\ request\ handling\.\
Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/http\.py",\ line\ 625,\ in\ _handle_exception
\ \ \ \ return\ super\(JsonRequest,\ self\)\._handle_exception\(exception\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/http\.py",\ line\ 311,\ in\ _handle_exception
\ \ \ \ raise\ pycompat\.reraise\(type\(exception\),\ exception,\ sys\.exc_info\(\)\[2\]\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/tools/pycompat\.py",\ line\ 14,\ in\ reraise
\ \ \ \ raise\ value
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/http\.py",\ line\ 670,\ in\ dispatch
\ \ \ \ result\ =\ self\._call_function\(\*\*self\.params\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/http\.py",\ line\ 351,\ in\ _call_function
\ \ \ \ return\ checked_call\(self\.db,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/service/model\.py",\ line\ 94,\ in\ wrapper
\ \ \ \ return\ f\(dbname,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/http\.py",\ line\ 340,\ in\ checked_call
\ \ \ \ result\ =\ self\.endpoint\(\*a,\ \*\*kw\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/http\.py",\ line\ 916,\ in\ __call__
\ \ \ \ return\ self\.method\(\*args,\ \*\*kw\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/http\.py",\ line\ 516,\ in\ response_wrap
\ \ \ \ response\ =\ f\(\*args,\ \*\*kw\)
\ \ File\ "/home/shani/fynarfin/odoo13/addons/web/controllers/main\.py",\ line\ 1346,\ in\ call_button
\ \ \ \ action\ =\ self\._call_kw\(model,\ method,\ args,\ kwargs\)
\ \ File\ "/home/shani/fynarfin/odoo13/addons/web/controllers/main\.py",\ line\ 1334,\ in\ _call_kw
\ \ \ \ return\ call_kw\(request\.env\[model\],\ method,\ args,\ kwargs\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/api\.py",\ line\ 390,\ in\ call_kw
\ \ \ \ result\ =\ _call_kw_multi\(method,\ model,\ args,\ kwargs\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/api\.py",\ line\ 377,\ in\ _call_kw_multi
\ \ \ \ result\ =\ method\(recs,\ \*args,\ \*\*kwargs\)
\ \ File\ "",\ line\ 2,\ in\ button_immediate_install
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_module\.py",\ line\ 73,\ in\ check_and_log
\ \ \ \ return\ method\(self,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_module\.py",\ line\ 464,\ in\ button_immediate_install
\ \ \ \ return\ self\._button_immediate_function\(type\(self\)\.button_install\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_module\.py",\ line\ 574,\ in\ _button_immediate_function
\ \ \ \ modules\.registry\.Registry\.new\(self\._cr\.dbname,\ update_module=True\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/modules/registry\.py",\ line\ 87,\ in\ new
\ \ \ \ odoo\.modules\.load_modules\(registry\._db,\ force_demo,\ status,\ update_module\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/modules/loading\.py",\ line\ 426,\ in\ load_modules
\ \ \ \ processed_modules\ \+=\ load_marked_modules\(cr,\ graph,
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/modules/loading\.py",\ line\ 313,\ in\ load_marked_modules
\ \ \ \ loaded,\ processed\ =\ load_module_graph\(
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/modules/loading\.py",\ line\ 202,\ in\ load_module_graph
\ \ \ \ registry\.init_models\(cr,\ model_names,\ \{'module':\ package\.name\},\ new_install\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/modules/registry\.py",\ line\ 377,\ in\ init_models
\ \ \ \ func\(\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/models\.py",\ line\ 381,\ in\ _reflect
\ \ \ \ self\.env\['ir\.model\.fields'\]\._reflect_model\(self\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_model\.py",\ line\ 931,\ in\ _reflect_model
\ \ \ \ ids\ =\ query_insert\(cr,\ self\._table,\ to_insert\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_model\.py",\ line\ 57,\ in\ query_insert
\ \ \ \ cr\.execute\(query,\ params\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/sql_db\.py",\ line\ 173,\ in\ wrapper
\ \ \ \ return\ f\(self,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/shani/fynarfin/odoo13/odoo/sql_db\.py",\ line\ 250,\ in\ execute
\ \ \ \ res\ =\ self._obj.execute(query, params)
File "/home/shani/fynarfin/odoo13/odoo13env/lib/python3.8/site-packages/psycopg2/extensions.py", line 120, in getquoted
pobjs = [adapt(o) for o in self._seq]
File "/home/shani/fynarfin/odoo13/odoo13env/lib/python3.8/site-packages/psycopg2/extensions.py", line 120, in
pobjs = [adapt(o) for o in self._seq]
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
909
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Nov 24
|
1615 | ||
|
2
Apr 23
|
14536 | ||
|
1
Mar 23
|
1137 | ||
|
4
Aug 24
|
21119 | ||
|
0
Dec 21
|
1469 |