Skip to content

Commit 73f555e

Browse files
committed
[IMP] estate: Add master and demo data
1 parent b0f40d0 commit 73f555e

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

estate/__manifest__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
'version': '18.0.1.0.0',
44
'depends': ['base'],
55
'data': [
6+
'data/master_data.xml',
67
'security/ir.model.access.csv',
78
'views/estate_property_views.xml',
89
'views/estate_property_offer_views.xml',
@@ -11,6 +12,7 @@
1112
'views/res_users_views.xml',
1213
'views/estate_menus.xml',
1314
],
15+
'demo': ['demo/estate.property.csv'],
1416
'author': "baje",
1517
'category': 'Uncategorized',
1618
'description': """

estate/data/master_data.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<odoo>
2+
<record id="property_type_residential" model="estate.property.type">
3+
<field name="name">Residential</field>
4+
</record>
5+
<record id="property_type_commercial" model="estate.property.type">
6+
<field name="name">Commercial</field>
7+
</record>
8+
<record id="property_type_industrial" model="estate.property.type">
9+
<field name="name">Industrial</field>
10+
</record>
11+
<record id="property_type_land" model="estate.property.type">
12+
<field name="name">Land</field>
13+
</record>
14+
</odoo>

estate/demo/estate.property.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
id,name,description,postcode,date_availability,expected_price,selling_price,bedrooms,living_area,facades,garage,garden,garden_area,garden_orientation,active,state
2+
100,Housing Number 100,"A house. Here's a random fraction: 0,815281954423783",165,2025-07-11,2660000,2660000,2,294,1,True,True,45,west,True,offer_received
3+
101,Housing Number 101,"A house. Here's a random fraction: 0,722300355198869",340,2025-06-06,2410000,2410000,2,472,1,True,True,70,south,True,canceled
4+
102,Housing Number 102,"A house. Here's a random fraction: 0,676182648737866",480,2025-11-09,730000,730000,1,143,0,True,True,80,east,True,canceled

0 commit comments

Comments
 (0)