Skip to content

Commit 8c2f328

Browse files
committed
[IMP] estate: Added menu structure and property action
Introduced a new menu structure for the estate module, including a root menu and submenus for properties. Also added an action for managing estate properties with a corresponding view mode.
1 parent e5c07e0 commit 8c2f328

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

Estate/__manifest__.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
2-
'name' :'estate',
3-
'depends':['base'],
2+
'name': 'estate',
3+
'depends': ['base'],
44
'application': True,
55
'installable': True,
6-
'author':'estate',
6+
'author': 'estate',
77
'category': 'Tutorials',
88
'license': 'AGPL-3',
99
'data': [
10-
'security/ir.model.access.csv'
11-
'views/estate_property_views.xml'
12-
]
10+
'security/ir.model.access.csv',
11+
'views/estate_property_views.xml',
12+
'views/estate_menus.xml',
13+
],
1314
}

Estate/views/estate_menus.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
<odoo>
2-
<record id=""
2+
<menuitem id="estate_root_menu" name="Estate"/>
3+
4+
<menuitem id="estate_first_menu"
5+
name="Properties"
6+
parent="estate_root_menu"/>
7+
8+
<menuitem id="estate_property_menu"
9+
name="Estate Properties"
10+
parent="estate_first_menu"
11+
action="action_estate_property"/>
12+
</odoo>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<odoo>
2+
<record id="action_estate_property" model="ir.actions.act_window">
3+
<field name="name">Properties</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+
Create a new property
9+
</p>
10+
</field>
11+
</record>
12+
</odoo>

0 commit comments

Comments
 (0)