Skip to content

Commit 93657db

Browse files
committed
[IMP] estate: interact with external modules and code cleanup
- Implemented cross-module field access and method calls to demonstrate interaction with other modules. - Cleaned codebase to fix linter errors and improve readability.
1 parent f96eeb3 commit 93657db

File tree

3 files changed

+43
-4
lines changed

3 files changed

+43
-4
lines changed

estate/security/ir.model.access.csv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
2-
access_estate_model,estate.property,model_estate_property,,1,1,1,1
3-
access_estate_model_property,estate.property.type,model_estate_property_type,,1,1,1,1
4-
access_estate_model_tag,estate.property.tag,model_estate_property_tag,,1,1,1,1
5-
access_estate_model_offer,estate.property.offer,model_estate_property_offer,,1,1,1,1
2+
access_estate_model,estate.property,model_estate_property,base.group_user,1,1,1,1
3+
access_estate_model_property,estate.property.type,model_estate_property_type,base.group_user,1,1,1,1
4+
access_estate_model_tag,estate.property.tag,model_estate_property_tag,base.group_user,1,1,1,1
5+
access_estate_model_offer,estate.property.offer,model_estate_property_offer,base.group_user,1,1,1,1

estate/views/estate_menus.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@
99
action="estate_property_action"/> <!-- The action menus = Drop Down in topo bar -->
1010

1111
</menuitem>
12+
13+
<menuitem id="Settings_menu"
14+
name="Settings"> <!-- First Level = Top Bar-->
15+
16+
<menuitem id="estate_property_menu_action_settings"
17+
action="estate_property_action_settings"/>
18+
19+
<menuitem id="estate_property_menu_action_settings_tag"
20+
action="estate_property_action_tag"/>
21+
22+
</menuitem>
23+
24+
25+
26+
1227
</menuitem>
1328

1429
</odoo>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<odoo>
2+
<record id="estate_property_action_tag" model="ir.actions.act_window">
3+
<field name="name">Property Tag</field>
4+
<field name="res_model">estate.property.tag</field>
5+
<field name="view_mode">list,form</field>
6+
</record>
7+
8+
<record id="estate_property_settings_tag_form" model="ir.ui.view">
9+
<field name="name">estate.property.tag.form</field>
10+
<field name="model">estate.property.tag</field>
11+
<field name="arch" type="xml">
12+
<form string="Name">
13+
<sheet>
14+
<div class="oe_title">
15+
<h1>
16+
<field name="name" />
17+
</h1>
18+
</div>
19+
</sheet>
20+
</form>
21+
</field>
22+
</record>
23+
24+
</odoo>

0 commit comments

Comments
 (0)