Skip to content

Commit cb5ea91

Browse files
committed
[IMP] estate: added new record action and menu
1 parent 397096b commit cb5ea91

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

estate/__manifest__.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
{'name': 'Real Estate',
2-
'depends': ['base'],
3-
'application': True,
4-
'author': 'leker',
5-
'license': 'LGPL-3',
1+
{
2+
'name': 'Real Estate',
3+
'depends': ['base'],
4+
'data': ['security/ir.model.access.csv',
5+
'views/estate_property_views.xml',
6+
'views/estate_menus.xml'],
7+
'application': True,
8+
'author': 'leker',
9+
'license': 'LGPL-3',
610
}

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"?>
2+
<odoo>
3+
<menuitem id="real_estate_menu_root" name="Real Estate">
4+
<menuitem id="adevrisements_first_level_menu" name="Advertisements">
5+
<menuitem id="properties_model_menu_action" action="estate_new_record_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"?>
2+
<odoo>
3+
<record id="estate_new_record_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)