Skip to content

Commit

Permalink
[FIX] estate: try to fix demo reload data error
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbangwa243 committed Jul 28, 2024
1 parent 76e8601 commit 87db7fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 4 additions & 6 deletions addons/estate/demo/estate_property_demo.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<odoo>
<data noupdate="1">
<record id="estate_property_id1" model="estate.property">
<record id="estate_property_id1" model="estate.property" forcecreate="True">
<field name="name">Big Villa</field>
<field name="state">new</field>
<field name="description">A nice and big villa</field>
Expand All @@ -16,7 +16,7 @@
<field name="garden_orientation">South</field>
<field name="property_type_id" ref="estate.estate_property_type_id1"/>
</record>
<record id="estate_property_id2" model="estate.property">
<record id="estate_property_id2" model="estate.property" forcecreate="True">
<field name="name">Trailer home</field>
<field name="state">canceled</field>
<field name="description">Home in a trailer park</field>
Expand All @@ -30,7 +30,7 @@
<field name="garage">False</field>
<field name="property_type_id" ref="estate.estate_property_type_id1"/>
</record>
<record id="estate_property_id3" model="estate.property">
<record id="estate_property_id3" model="estate.property" forcecreate="True">
<field name="name">Bangwa home</field>
<field name="state">offer_received</field>
<field name="description">Home in a trailer park</field>
Expand All @@ -43,7 +43,6 @@
<field name="facades">4</field>
<field name="garage">False</field>
<field name="property_type_id" ref="estate.estate_property_type_id2"/>
<!-- base.res_partner3 is GEMINI -->
<field name="offer_ids" eval="[
Command.create({
'price': 170000.0,
Expand All @@ -60,5 +59,4 @@
]"/>
</record>
</data>

</odoo>
</odoo>
6 changes: 3 additions & 3 deletions addons/estate/demo/estate_property_offer_demo.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<odoo>
<data noupdate="1">
<record model="estate.property.offer" id="estate_property_offer_id1">
<record model="estate.property.offer" id="estate_property_offer_id1" forcecreate="True">
<field name="price">10000</field>
<field name="validity">14</field>
<field name="partner_id" ref="base.res_partner_12"/>
<field name="property_id" ref="estate.estate_property_id1"/>
<field name="date_deadline" eval="datetime.today() + timedelta(days=15)"/>

</record>
<record model="estate.property.offer" id="estate_property_offer_id2">
<record model="estate.property.offer" id="estate_property_offer_id2" forcecreate="True">
<field name="price">1500000</field>
<field name="validity">14</field>
<field name="partner_id" ref="base.res_partner_12"/>
<field name="property_id" ref="estate.estate_property_id1"/>
<field name="date_deadline" eval="datetime.today() + timedelta(days=15)"/>

</record>
<record model="estate.property.offer" id="estate_property_offer_id3">
<record model="estate.property.offer" id="estate_property_offer_id3" forcecreate="True">
<field name="price">1500001</field>
<field name="validity">14</field>
<field name="partner_id" ref="base.res_partner_2"/>
Expand Down

0 comments on commit 87db7fe

Please sign in to comment.