Skip to content

Commit e923c22

Browse files
committed
[ADD] Chapter 5: Finally, Some UI to Play With
Created the first action and menu, and added them to the __manifest__.py file. Linked the action to the menu.
1 parent 199ec69 commit e923c22

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

estate/__manifest__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@
1212
'application': True,
1313
'data': [
1414
'security/ir.model.access.csv',
15+
'views/estate_property_views.xml',
16+
'views/estate_menus.xml',
1517
],
1618
}

estate/views/estate_menus.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<odoo>
3+
<menuitem id="estate_property_root" name="Real Estate">
4+
<menuitem id="estate_property_advertisements_menu" name="Advertisements">
5+
<menuitem id="estate_property_menu_action" action="estate_property_action"/>
6+
</menuitem>
7+
</menuitem>
8+
</odoo>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<odoo>
3+
<record id="estate_property_action" model="ir.actions.act_window">
4+
<field name="name">Properties</field>
5+
<field name="res_model">estate.property</field>
6+
<field name="view_mode">list,form</field>
7+
</record>
8+
</odoo>

0 commit comments

Comments
 (0)