Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

[已解决]odoo10 安装模块报csv文件的错



  • 报错csv文件的原因,提示如图:csv文件正确的啊??
    0_1520999282663_install sps base.png

    Traceback (most recent call last):
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/http.py", line 640, in _handle_exception
        return super(JsonRequest, self)._handle_exception(exception)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/http.py", line 677, in dispatch
        result = self._call_function(**self.params)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/http.py", line 333, in _call_function
        return checked_call(self.db, *args, **kwargs)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/service/model.py", line 101, in wrapper
        return f(dbname, *args, **kwargs)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/http.py", line 326, in checked_call
        result = self.endpoint(*a, **kw)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/http.py", line 935, in __call__
        return self.method(*args, **kw)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/http.py", line 506, in response_wrap
        response = f(*args, **kw)
      File "/home/hui/odoo-dev/odoo10/odoo/addons/web/controllers/main.py", line 889, in call_button
        action = self._call_kw(model, method, args, {})
      File "/home/hui/odoo-dev/odoo10/odoo/addons/web/controllers/main.py", line 877, in _call_kw
        return call_kw(request.env[model], method, args, kwargs)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/api.py", line 689, in call_kw
        return call_kw_multi(method, model, args, kwargs)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/api.py", line 680, in call_kw_multi
        result = method(recs, *args, **kwargs)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/addons/base/module/module.py", line 411, in button_immediate_install
        return self._button_immediate_function(type(self).button_install)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/addons/base/module/module.py", line 485, in _button_immediate_function
        modules.registry.Registry.new(self._cr.dbname, update_module=True)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/modules/registry.py", line 83, in new
        odoo.modules.load_modules(registry._db, force_demo, status, update_module)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/modules/loading.py", line 339, in load_modules
        loaded_modules, update_module)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/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/hui/odoo-dev/odoo10/odoo/odoo/modules/loading.py", line 156, in load_module_graph
        _load_data(cr, module_name, idref, mode, kind='data')
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/modules/loading.py", line 95, in _load_data
        tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/tools/convert.py", line 839, in convert_file
        convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/tools/convert.py", line 895, 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 sps_base failed: file sps_base/security/ir.model.access.csv could not be processed:
     No matching record found for external id 'model_plantsp_material_status' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_plantsp_material_status' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_plantsp_material_status' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_plantsp_material_status' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_plantsp_material_status' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_plantsp_material_status' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_plantsp_material_status' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_plantsp_material_status' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_plantsp_material_status' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_robot_protection_type' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_robot_protection_type' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_robot_protection_type' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_robot_protection_type' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_robot_protection_type' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_robot_protection_type' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_robot_protection_type' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_robot_protection_type' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_robot_protection_type' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_account_payment_term_line' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_account_payment_term_line' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_account_payment_term_line' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_account_payment_term_line' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_account_payment_term_line' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_account_payment_term_line' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_account_payment_term_line' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_account_payment_term_line' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    No matching record found for external id 'model_account_payment_term_line' in field 'Object'
    Missing required value for the field 'Object' (model_id)
    

    0_1521000620640_2018-03-14 12-09-09屏幕截图.png



  • 让你提供ID 不是model名



  • @1140021222qq-com
    你说的是提供哪个id?



  • 😛 😛 是我看错了。可能是要加模块名。🤣 猜的,导入导出出问题比较难定位。。



  • 已解决。

    首先,以前都是导入数据库的数据,这样数据库中会存在已经删除的model的数据表,不会报错。

    本次操作是直接安装自定义模块的,所以会检查出csv文件中有不存在的模型的,也就是csv中的model跟数据库中的表没有对应上或不存在,所以报错的。

    个人理解:odoo中所有的,不管是model,还是view,还是数据文件,都对应的是postgre中的一张数据表,所以这个问题还是对这个理解不深刻啊。