Skip to Content
Menu
This question has been flagged
3 Replies
13456 Views

Hello


I am getting below error when I try to install a module through the App UI


Odoo version: Odoo 10.0-20190619 (Community Edition)


Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 642, in _handle_exception
    return super (JsonRequest, self) ._ handle_exception (exception)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 684, in dispatch
    result = self._call_function (** self.params)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 334, in _call_function
    return checked_call (self.db, * args, ** kwargs)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/service/model.py", line 101, in wrapper
    return f (dbname, * args, ** kwargs)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 327, in checked_call
    result = self.endpoint (* a, ** kw)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 942, in __call__
    return self.method (* args, ** kw)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 507, in response_wrap
    response = f (* args, ** kw)
  File "/opt/bahmni-erp/odoo/addons/web/controllers/main.py", line 899, in call_button
    action = self._call_kw (model, method, args, {})
  File "/opt/bahmni-erp/odoo/addons/web/controllers/main.py", line 887, in _call_kw
    return call_kw (request.env [model], method, args, kwargs)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/api.py", line 689, in call_kw
    return call_kw_multi (method, model, args, kwargs)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/api.py", line 680, in call_kw_multi
    result = method (recs, * args, ** kwargs)
  File "/opt/bahmni-erp/odoo/addons/base/module/module.py", line 413, in button_immediate_install
    return self._button_immediate_function (type (self) .button_install)
  File "/opt/bahmni-erp/odoo/addons/base/module/module.py", line 495, in _button_immediate_function
    modules.registry.Registry.new (self._cr.dbname, update_module = True)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/registry.py", line 83, in new
    odoo.modules.load_modules (registry._db, force_demo, status, update_module)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py", line 377, in load_modules
    loaded_modules, update_module, models_to_check)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py", line 270, in load_marked_modules
    perform_checks = perform_checks, models_to_check = models_to_check
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py", line 182, in load_module_graph
    _load_data (cr, module_name, idref, mode, kind = 'data')
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py", line 96, in _load_data
    tools.convert_file (cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/tools/convert.py", line 840, in convert_file
    convert_csv_import (cr, module, pathname, fp.read (), idref, mode, noupdate)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/tools/convert.py", line 896, in convert_csv_import
    raise Exception (_ ('Module loading% s failed: file% s could not be processed: \ n% s')% (module, fname, warning_msg))
Exception: Module loading bahmni_atom_feed failed: file bahmni_atom_feed / security / ir.model.access.csv could not be processed:
 No matching record found for external id 'model_order_picking_type_mapping' in field 'Object'
Missing required value for the field 'Object' (model_id)
No matching record found for external id 'model_drug_service_create' in field 'Object'
Missing required value for the field 'Object' (model_id)
Avatar
Discard

Hi, I have the same problem. Did you find the solution for this?

Author Best Answer

Thank you all for your responses. Unfortunately I did not write the module, I sent this error to the developers of the module but they were not able to assist. I don't know how to resolve this

I was able to clear below error from the log

r.model.access.csv could not be processed

However I'm still getting below error when I try to start the app

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 642, in _handle_exception
    return super (JsonRequest, self) ._ handle_exception (exception)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 684, in dispatch
    result = self._call_function (** self.params)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 334, in _call_function
    return checked_call (self.db, * args, ** kwargs)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/service/model.py", line 101, in wrapper
    return f (dbname, * args, ** kwargs)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 327, in checked_call
    result = self.endpoint (* a, ** kw)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 942, in __call__
    return self.method (* args, ** kw)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 507, in response_wrap
    response = f (* args, ** kw)
  File "/opt/bahmni-erp/odoo/addons/web/controllers/main.py", line 899, in call_button
    action = self._call_kw (model, method, args, {})
  File "/opt/bahmni-erp/odoo/addons/web/controllers/main.py", line 887, in _call_kw
    return call_kw (request.env [model], method, args, kwargs)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/api.py", line 689, in call_kw
    return call_kw_multi (method, model, args, kwargs)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/api.py", line 680, in call_kw_multi
    result = method (recs, * args, ** kwargs)
  File "/opt/bahmni-erp/odoo/addons/base/module/module.py", line 413, in button_immediate_install
    return self._button_immediate_function (type (self) .button_install)
  File "/opt/bahmni-erp/odoo/addons/base/module/module.py", line 495, in _button_immediate_function
    modules.registry.Registry.new (self._cr.dbname, update_module = True)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/registry.py", line 83, in new
    odoo.modules.load_modules (registry._db, force_demo, status, update_module)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py", line 377, in load_modules
    loaded_modules, update_module, models_to_check)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py", line 270, in load_marked_modules
    perform_checks = perform_checks, models_to_check = models_to_check
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py", line 182, in load_module_graph
    _load_data (cr, module_name, idref, mode, kind = 'data')
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py", line 96, in _load_data
    tools.convert_file (cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/tools/convert.py", line 840, in convert_file
    convert_csv_import (cr, module, pathname, fp.read (), idref, mode, noupdate)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/tools/convert.py", line 892, in convert_csv_import
    result = env [model] .load (fields, datas)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/models.py", line 874, in load
    for id, xid, record, info in converted:
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/models.py", line 1020, in _convert_records
    for record, extras in stream:
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/tools/misc.py", line 977, in next
    val = next (self.stream, _ph)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/models.py", line 944, in _extract_records
    if fields [fnames [0]]. type == 'one2many'
KeyError: ''
Avatar
Discard
Best Answer

Hi @Tapologo

Check the module manifest depends that needs to have the modules that define those models referenced in the csv and also they need to be installed too in order to work properly the load of the permissions

Avatar
Discard
Best Answer

Hi,

It seems the ir.model.access.csv file is not written correctly. Error says that there is no model named order_picking_type_mapping inside the module that which you refereed in the ir.model.access.csv file.


Thanks

Avatar
Discard
Related Posts Replies Views Activity
4
Feb 20
1548
1
Jul 24
325
3
Jun 24
1249
2
Sep 23
1925
0
Jun 21
1121