Skip to content

Commit a5dd647

Browse files
committed
[IMP] estate: created views, menus and modified manifest file
1 parent 235621f commit a5dd647

File tree

5 files changed

+52
-3
lines changed

5 files changed

+52
-3
lines changed

estate/__manifest__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
Description text
1111
""",
1212
'data': [
13-
'views/estate_view.xml',
13+
'views/estate_menus.xml',
14+
'views/estate_property_views.xml',
1415
'security/ir.model.access.csv'
1516
],
1617
}

estate/models/estate_property.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ class EstateProperty(models.Model):
1616
garage = fields.Boolean()
1717
garden = fields.Boolean()
1818
garden_area = fields.Integer()
19-
garden_orientation = fields.Selection(selection= [('north','North'),('south','South'),('east','East'),('west','West')])
20-
19+
garden_orientation = fields.Selection(selection = [('north','North'),('south','South'),('east','East'),('west','West')])

estate/views/estate_menus.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<odoo>
2+
<menuitem id="estate_menu_root"
3+
name="Estate Property"
4+
action="action_estate"/>
5+
6+
<menuitem id="estate_menu_property"
7+
name="Properties"
8+
parent="estate_menu_root"
9+
action="action_estate_property"/>
10+
11+
<menuitem id="property_menu"
12+
name="Configuration"
13+
parent="estate_menu_root"
14+
action="action_estate_configure"/>
15+
</odoo>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<odoo>
2+
<record id="action_estate" model="ir.actions.act_window">
3+
<field name="name">Estate Property</field>
4+
<field name="res_model">estate.property</field>
5+
<field name="view_mode">list,form</field>
6+
<field name="help" type="html">
7+
<p class="o_view_nocontent_smiling_face">
8+
Estate Property Home!
9+
</p>
10+
</field>
11+
</record>
12+
13+
<record id="action_estate_property" model="ir.actions.act_window">
14+
<field name="name">Estate Property</field>
15+
<field name="res_model">estate.property</field>
16+
<field name="view_mode">list,form</field>
17+
<field name="help" type="html">
18+
<p class="o_view_nocontent_smiling_face">
19+
Create New Property!
20+
</p>
21+
</field>
22+
</record>
23+
24+
<record id="action_estate_configure" model="ir.actions.act_window">
25+
<field name="name">Estate Property</field>
26+
<field name="res_model">estate.property</field>
27+
<field name="view_mode">list,form</field>
28+
<field name="help" type="html">
29+
<p class="o_view_nocontent_smiling_face">
30+
Empty!
31+
</p>
32+
</field>
33+
</record>
34+
</odoo>

estate/views/estate_view.xml

Whitespace-only changes.

0 commit comments

Comments
 (0)