Navigation

    Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

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

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

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

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

    导入产品时出错

    Odoo 新手求助
    2
    8
    7884
    Loading More Posts
    • 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.
    • T
      tianciyx last edited by

      我将商品的csv文件导入在产品出错,提示如下:
      Error trying to import this record:
      active: 1
      price_margin: 1.0
      default_code: 2033062
      price_extra: 0.0

      Error Message:
      ERROR: null value in column "procure_method" violates not-null constraint

      insert into "product_template" (id,perm_id,"uos_coeff","supply_method","sale_delay","list_price","name","produce_delay","sta
      是否是说成本计算方法字段值不能为空,但我的商品csv文件中成本计算方法值已设为stanard,商品csv文件为:
      名称,分类,编码,产品类型,采购方式, 采购方式,标准价格,基本价格,成本计算方法,计量类型
      威立仕单杯架,厨卫商品,2033062,product,make_to_order,buy,21,60,standard, fixed
      还有,我安装的是中文版0.33,如何才能打开数据库看表product_template的内容
      [table=98%][tr][td]
      [/td][td]
      [/td][td]
      [/td][td]
      [/td][td]
      [/td][td]
      [/td][td]
      [/td][td]
      [/td][td]
      [/td][td]
      [/td][/tr][/table]

      [[i] 本帖最后由 tianciyx 于 2008-1-20 12:15 编辑 [/i]]

      1 Reply Last reply Reply Quote 0
      • T
        tianciyx last edited by

        怎么没人回复呢,那有谁知道如何在中文版0.33中查看数据库表结构及内容么?

        1 Reply Last reply Reply Quote 0
        • wjfonhand
          wjfonhand last edited by

          名称,分类,编码,产品类型,采购方式, 采购方式,标准价格,基本价格,成本计算方法,计量类型
          ERROR: null value in column "procure_method" violates not-null constraint
          您没发现采购方式重复了么?

          1 Reply Last reply Reply Quote 0
          • T
            tianciyx last edited by

            但产品表单中是有二个采购方式,而且都是必填字段,那导入时我应将字段名改为什么呢?

            1 Reply Last reply Reply Quote 0
            • wjfonhand
              wjfonhand last edited by

              恩,这个应该是翻译的问题。

              第一个采购方式应该是生产模式,按单生产还是按库存生产,你的make_to_order应该是对的。

              第二个采购方式应该是获取方式,生产还是采购,你试一下吧。

              一般做导入之前先导出,把导出的文件做模板改,就不容易出错了。

              good luck

              1 Reply Last reply Reply Quote 0
              • T
                tianciyx last edited by

                确实是先导出,有两个采购方式,一个的值是make_to_order,一个的值是buy,那我导入时应将其中的某一个字段名更改为什么呢

                1 Reply Last reply Reply Quote 0
                • T
                  tianciyx last edited by

                  看来只有去掉后面那个采购方式导入了

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post