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

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

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

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

新作了一个模块,安装提示出错



  • 模块只有几个文件,没有i18n,和wizard目录。

    有 init,
    .py,
    view.xml
    等几个文件。

    可以找到模块,但安装时出错,提示:
    Traceback (most recent call last):
    File "netsvc.pyo", line 245, in dispatch
    File "netsvc.pyo", line 74, in call
    File "serviceweb_services.pyo", line 632, in execute
    File "serviceweb_services.pyo", line 612, in execute
    File "wizard__init
    _.pyo", line 178, in execute
    File "wizard__init__.pyo", line 73, in execute_cr
    File "C:Program FilesOpenERP AllInOneServeraddonsbasemodulewizardwizard_module_upgrade.py", line 92, in upgrade_module
    File "pooler.pyo", line 62, in restart_pool
    File "pooler.pyo", line 40, in get_db_and_pool
    File "addons__init
    _.pyo", line 740, in load_modules
    File "addons__init__.pyo", line 631, in load_module_graph
    File "toolsconvert.pyo", line 874, in convert_xml_import
    File "toolsconvert.pyo", line 771, in parse
    File "toolsconvert.pyo", line 735, in _tag_record
    File "toolsconvert.pyo", line 756, in id_get
    File "toolsmisc.pyo", line 683, in cached_result
    File "C:Program FilesOpenERP AllInOneServeraddonsbaseirir_model.py", line 447, in _get_id
    Exception: No references to product_profit.product_product_tree_view

    看看是哪里出问题



  • 模块只有几个文件,没有i18n,和wizard目录。

    有 init,
    .py,
    view.xml
    等几个文件。

    可以找到模块,但安装时出错,提示:
    Traceback (most recent call last):
    File "netsvc.pyo", line 245, in dispatch
    File "netsvc.pyo", line 74, in call
    File "serviceweb_services.pyo", line 632, in execute
    File "serviceweb_services.pyo", line 612, in execute
    File "wizard__init
    _.pyo", line 178, in execute
    File "wizard__init__.pyo", line 73, in execute_cr
    File "C:Program FilesOpenERP AllInOneServeraddonsbasemodulewizardwizard_module_upgrade.py", line 92, in upgrade_module
    File "pooler.pyo", line 62, in restart_pool
    File "pooler.pyo", line 40, in get_db_and_pool
    File "addons__init
    _.pyo", line 740, in load_modules
    File "addons__init__.pyo", line 631, in load_module_graph
    File "toolsconvert.pyo", line 874, in convert_xml_import
    File "toolsconvert.pyo", line 771, in parse
    File "toolsconvert.pyo", line 735, in _tag_record
    File "toolsconvert.pyo", line 756, in id_get
    File "toolsmisc.pyo", line 683, in cached_result
    File "C:Program FilesOpenERP AllInOneServeraddonsbaseirir_model.py", line 447, in _get_id
    Exception: No references to product_profit.product_product_tree_view

    看看是哪里出问题



  • 检查一下 model 之间的依赖关系


  • 管理员

    什么模块,是你自己写的,还是下载的呢?



  • 很明显是 .py .xml 文件里有问题.
    你单发这错误 信息, 然后模块又不是标准模块, 你让大家怎么帮你呢?

    提示是
    product_profit.product_product_tree_view 这个没有找到.

    有两种可能.
    1 你没有定义.
    2 你没有引入


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待