Hi Friends,
Please help me with the error, When I am installing rental module in Odoo-9. It is giving me below mentioned error -
2015-12-23 06:34:25,935 7070 INFO Mary_DB9 openerp.sql_db: Programming error: can't adapt type 'dict', in query UPDATE "product_template" SET "rent_price_unity"=%s WHERE "rent_price_unity" is NULL
2015-12-23 06:34:25,935 7070 ERROR Mary_DB9 openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/home/shiva/workspace/odoo-9/openerp/http.py", line 599, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/shiva/workspace/odoo-9/openerp/http.py", line 636, in dispatch
result = self._call_function(**self.params)
File "/home/shiva/workspace/odoo-9/openerp/http.py", line 315, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/shiva/workspace/odoo-9/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/home/shiva/workspace/odoo-9/openerp/http.py", line 308, in checked_call
result = self.endpoint(*a, **kw)
File "/home/shiva/workspace/odoo-9/openerp/http.py", line 887, in __call__
return self.method(*args, **kw)
File "/home/shiva/workspace/odoo-9/openerp/http.py", line 465, in response_wrap
response = f(*args, **kw)
File "/home/shiva/workspace/odoo-9/openerp/addons/web/controllers/main.py", line 975, in call_button
action = self._call_kw(model, method, args, {})
File "/home/shiva/workspace/odoo-9/openerp/addons/web/controllers/main.py", line 963, in _call_kw
return checked_call(request.db, *args, **kwargs)
File "/home/shiva/workspace/odoo-9/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/home/shiva/workspace/odoo-9/openerp/addons/web/controllers/main.py", line 962, in checked_call
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/home/shiva/workspace/odoo-9/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/home/shiva/workspace/odoo-9/openerp/addons/base/module/module.py", line 459, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "/home/shiva/workspace/odoo-9/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/home/shiva/workspace/odoo-9/openerp/addons/base/module/module.py", line 533, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/home/shiva/workspace/odoo-9/openerp/modules/registry.py", line 385, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/shiva/workspace/odoo-9/openerp/modules/loading.py", line 337, in load_modules
loaded_modules, update_module)
File "/home/shiva/workspace/odoo-9/openerp/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/shiva/workspace/odoo-9/openerp/modules/loading.py", line 137, in load_module_graph
init_module_models(cr, package.name, models)
File "/home/shiva/workspace/odoo-9/openerp/modules/module.py", line 293, in init_module_models
result = obj._auto_init(cr, {'module': module_name})
File "/home/shiva/workspace/odoo-9/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/home/shiva/workspace/odoo-9/openerp/models.py", line 2630, in _auto_init
self._set_default_value_on_column(cr, k, context=context)
File "/home/shiva/workspace/odoo-9/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/home/shiva/workspace/odoo-9/openerp/models.py", line 2400, in _set_default_value_on_column
cr.execute(query, (db_default,))
File "/home/shiva/workspace/odoo-9/openerp/sql_db.py", line 139, in wrapper
return f(self, *args, **kwargs)
File "/home/shiva/workspace/odoo-9/openerp/sql_db.py", line 215, in execute
res = self._obj.execute(query, params)
ProgrammingError: can't adapt type 'dict'
0 Answer(s)