Skip to content

Commit 7de91aa

Browse files
author
youness benbraitit (yoben)
committed
[IMP] estate: Creating ui action
actions menu view
1 parent 6e16ab7 commit 7de91aa

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

estate/__manifest__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
'base',
1111
],
1212
'data': [
13-
'data/ir.model.access.csv'
13+
'data/ir.model.access.csv',
14+
'view/estate_property_views.xml',
1415
],
1516

1617
}

estate/view/__init__.py

Whitespace-only changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<odoo>
2+
<record id="estate_property_action" model="ir.actions.act_window">
3+
<field name="name">Properties</field>
4+
<field name="res_model">estate.property</field>
5+
<field name="view_mode">tree,form</field>
6+
</record>
7+
8+
<menuitem id="estate_menu_root" name="Real Estate"/>
9+
10+
<menuitem id="estate_menu_advertisements"
11+
name="Advertisements"
12+
parent="estate_menu_root"/>
13+
14+
<menuitem id="estate_property_menu_action"
15+
action="estate_property_action"
16+
parent="estate_menu_advertisements"/>
17+
18+
</odoo>

0 commit comments

Comments
 (0)