Skip to content
Snippets Groups Projects
Commit b50bccb2 authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[FIX] lunch: don't update or recreate initial data


closes odoo/odoo#38260

Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
parent 46a3ac19
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="lunch_location_main" model="lunch.location">
<data noupdate="1">
<record id="lunch_location_main" model="lunch.location" forcecreate="0">
<field name="name">HQ Office</field>
</record>
<record model="lunch.product.category" id="categ_sandwich">
<record model="lunch.product.category" id="categ_sandwich" forcecreate="0">
<field name="name">Sandwich</field>
</record>
<record id="categ_pizza" model="lunch.product.category">
<record id="categ_pizza" model="lunch.product.category" forcecreate="0">
<field name="name">Pizza</field>
<field name="image_1920" type="base64" file="lunch/static/img/pizza.png"/>
</record>
<record id="categ_burger" model="lunch.product.category">
<record id="categ_burger" model="lunch.product.category" forcecreate="0">
<field name="name">Burger</field>
<field name="image_1920" type="base64" file="lunch/static/img/burger.png"/>
</record>
<record id="categ_drinks" model="lunch.product.category">
<record id="categ_drinks" model="lunch.product.category" forcecreate="0">
<field name="name">Drinks</field>
<field name="image_1920" type="base64" file="lunch/static/img/drink.png"/>
</record>
<record id="partner_hungry_dog" model="res.partner">
<record id="partner_hungry_dog" model="res.partner" forcecreate="0">
<field name="name">Lunch Supplier</field>
</record>
<record id="supplier_hungry_dog" model="lunch.supplier">
<record id="supplier_hungry_dog" model="lunch.supplier" forcecreate="0">
<field name="partner_id" ref="partner_hungry_dog"/>
<field name="available_location_ids" eval="[
(6, 0, [ref('lunch_location_main')]),
]"/>
</record>
</data>
<data>
<record id="lunch_order_action_confirm" model="ir.actions.server">
<field name="name">Lunch: Receive meals</field>
<field name="model_id" ref="model_lunch_order"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment