Skip to Content
Menu
This question has been flagged
1 Reply
2223 Views

Hi 

I am having this error when trying to install CRM on Odoo 12:

 File "/opt/odoo/odoo12/odoo/sql_db.py", line 225, in execute
    res = self._obj.execute(query, params)
odoo.tools.convert.ParseError: "null value in column "name" violates not-null constraint
DETAIL:  Failing row contains (4, null, weekly, 2020-04-20, 7, 1, activated, f, f, 1, 2020-04-17 19:30:21.185116, 1, 2020-04-17 19:30:21.185116, f, f, f, t, t).
" while parsing /opt/odoo/odoo12/addons/crm/data/digest_data.xml:4, near
<record id="digest_digest_default" model="digest.digest">
            <field name="kpi_crm_lead_created">True</field>
            <field name="kpi_crm_opportunities_won">True</field>
        </record>


Here is my code:

 <data noupdate="1">
        <record id="digest_digest_default" model="digest.digest">
            <field name="kpi_crm_lead_created">True</field>
            <field name="kpi_crm_opportunities_won">True</field>
        </record>
    </data>
    <data>
        <record id="digest_tip_crm_0" model="digest.tip">
            <field name="sequence">2</field>
            <field name="group_id" ref="sales_team.group_sale_salesman_all_leads"/>
            <field name="tip_description" type="html">
Can anyone help?
Avatar
Discard
Best Answer

You have to provide a value for all mandatory fields in your data records.

Avatar
Discard
Related Posts Replies Views Activity
3
Nov 24
1834
2
Nov 24
250
2
Jun 24
517
2
Jan 24
5005
1
Nov 23
759