Skip to content
  • Categories
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse

Odoo 中文社区

  1. Home
  2. Categories
  3. Odoo 新手求助
  4. Odoo安装模块时提示Odoo server error,导致无法正常安装卸载模块,求教各位大神,这个问题该如何解决!

Odoo安装模块时提示Odoo server error,导致无法正常安装卸载模块,求教各位大神,这个问题该如何解决!

Scheduled Pinned Locked Moved Odoo 新手求助
4 Posts 2 Posters 3.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 9 Offline
    9 Offline
    923485750
    wrote on last edited by
    #1

    正常解压缩GreenOdoo,模块无法正常安装,点击是提示Odoo server error 错误,这个问题该怎么解决?

    Odoo Server Error
    Traceback (most recent call last):
      File "D:\Program Files\GreenOdoo-8.0-win32_LN13\source\openerp\http.py", line 530, in _handle_exception
        return super(JsonRequest, self)._handle_exception(exception)
    .
    .
    .
    .
    .
      File "D:\Program Files\GreenOdoo-8.0-win32_LN13\source\openerp\sql_db.py", line 234, in execute
        res = self._obj.execute(query, params)
    ParseError: "insert or update on table "res_company" violates foreign key constraint "res_company_project_time_mode_id_fkey"
    DETAIL:  Key (project_time_mode_id)=(5) is not present in table "product_uom".
    " while parsing file:///D:/Program%20Files/GreenOdoo-8.0-win32_LN13/source/addons/project/project_data.xml:5, near
    <record id="base.main_company" model="res.company">
                <field name="project_time_mode_id" ref="product.product_uom_hour"/>
            </record>

    1 Reply Last reply
    0
    • JoshuaJ Offline
      JoshuaJ Offline
      Joshua
      管理员
      wrote on last edited by
      #2

      你是不是删除了默认的公司?
      尝试新建另外一个数据库重新安装模块。

      【上海先安科技】(joshua AT openerp.cn),欢迎关注公众号:openerp_cn

      1 Reply Last reply
      0
      • 9 Offline
        9 Offline
        923485750
        wrote on last edited by
        #3

        试了您提供的方法,问题仍然存在,十分感谢您的解疑!!!

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Tags
        • Popular
        • Users
        • Groups