zoukankan      html  css  js  c++  java
  • Odoo误删除服务产品造成的错误解决办法

    在Odoo8.0中删除了产品中的服务,会造成工时单模块的安装失败,信息如下所示:

    ParseError: "null value in column "name" violates not-null constraint

    DETAIL:  Failing row contains (46, null, null, 1.00, null, 0, null, 1, fixed, 1, null, 2016-02-27 00:48:44.011, 1.000, 1, t, 1, null, null, 1, null, 1, null, null, null, null, 2016-02-27 00:48:44.011, t, f, null, null, consu, null, f, f, null, null, f, null, 7, t)."

    while parsing file:///D:/GreenOdoo8.0/source/addons/hr_timesheet/hr_timesheet_data.xml:15, near

    <record id="product.product_product_consultant" model="product.product">

                <field name="sale_ok">True</field>

            </record>

    解决办法1:用备份数据库恢复。

      方法2:或者在产品窗体中新建一个服务产品,在数据库中找到product_product这个数据表,设置这个产品的id[PK] serial=1,保存。

  • 相关阅读:
    Variational Autoencoders and Nonlinear ICA: A Unifying Framework
    各层的特征的差异性
    TriggerBN +
    Exponential family of distributions
    个人加分项
    对老师的建议
    2021.6.19
    2021.6.18
    2021.6.17
    2021.6.16
  • 原文地址:https://www.cnblogs.com/SunOne/p/5222302.html
Copyright © 2011-2022 走看看