With community edition odoo github seems only focus to close tickets as soon as possible without fixing, unless it helps to Improve Enterprise Edition. Seems odoo OpenERP SA hired people who force to close users github issue reports.

Odoo 12.0 with stock installation we encounter this bug and found especially

odoo.tools.convert.ParseError: “duplicate key value violates unique constraint “stock_warehouse_warehouse_name_uniq”
DETAIL: Key (name, company_id)=(My Company, 1) already exists.
” while parsing /home/snippetbucket/source/branches/12-odoo/addons/stock/data/stock_data.xml:123, near
<record id=”warehouse0″ model=”stock.warehouse”>
<field name=”partner_id” ref=”base.main_partner”/>
<field name=”code”>WH22</field>
</record>

After deep detect issue found their duplicate violation, we check in odoo now new user odoobot with 12.0 version, it create other records and with same name new record going to create with same partner.

<record id=”warehouse0″ model=”stock.warehouse”>
<field name=”partner_id” ref=”base.main_partner”/>
<field name=”code”>WH</field>
<field name=”name”>Main Partner</field>
</record>

So by just adding a line, it had resolve this issue, As snippetbucket expert on odoo since odoo born,
we keep trying our customer to serve better and faster so place note here which helps to global developers.

For ODOO PAID Affordable Support please contact us info@snippetbucket.com, skype: live.snippetbucket