Skip to content

Commit fe97ac7

Browse files
[ADD] real_estate: Add UI views for estate model display
I-ntroduce the necessary UI views to display the estate model records in the Odoo interface. -Includes XML files . The new view files are registered in the module's manifest to ensure they are loaded correctly. Chapter #5
1 parent 8dad73a commit fe97ac7

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

estate/__manifest__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
""",
1010
'data': [
1111
'security/ir.model.access.csv',
12-
'security/estate_security.xml',
12+
'views/estate_property_views.xml',
13+
'views/estate_menus.xml'
1314
],
1415
'license': 'LGPL-3', # Default License
1516
'application': True,

estate/views/estate_menus.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<odoo>
3+
4+
<menuitem id="real_estate_root" name="Real Estate"/>
5+
6+
<menuitem id="real_estate_properties_menu" name="Properties" parent="real_estate_root"/>
7+
8+
<menuitem id="real_estate_menu_action" name="All Properties" parent="real_estate_properties_menu" action="test_property_action"/>
9+
</odoo>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0"?>
2+
<odoo>
3+
4+
<record id="test_property_action" model="ir.actions.act_window">
5+
<field name="name">Property Action</field>
6+
<field name="res_model">estate.property</field>
7+
<field name="view_mode">list,form</field>
8+
</record>
9+
10+
</odoo>

0 commit comments

Comments
 (0)