Menu
This commit is contained in:
parent
0aba5d585e
commit
a679dcea4d
@ -26,6 +26,7 @@
|
||||
'application': False,
|
||||
'installable': True,
|
||||
'data': ['security/ir.model.access.csv',
|
||||
'views/coworking_menu_parent.xml',
|
||||
'views/coworking_menu.xml',
|
||||
'views/coworker_views.xml'],
|
||||
'depends': ['coworking_base']
|
||||
|
@ -5,7 +5,10 @@
|
||||
<!-- Action to open Coworkers list -->
|
||||
<act_window id="coworker_action" name="Coworkers"
|
||||
res_model="coworking.coworker" view_mode="tree,form,kanban,calendar" />
|
||||
|
||||
<!-- Menu item to open Coworkers list -->
|
||||
<menuitem id="coworker_menu" name="Coworkers" action="coworker_action" />
|
||||
<!-- <menuitem id="coworker_menu" name="Coworkers" action="coworker_action" /> -->
|
||||
<!-- <menuitem id="coworking_parent_menu" name="Coworking" /> -->
|
||||
|
||||
|
||||
</odoo>
|
||||
|
15
coworking_coworker/views/coworking_menu_parent.xml
Normal file
15
coworking_coworker/views/coworking_menu_parent.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<odoo>
|
||||
<!-- Menu items -->
|
||||
<!-- Modify top menu item -->
|
||||
<menuitem id="coworker_menu" name="Coworking" />
|
||||
<!-- App menu items -->
|
||||
<menuitem id="menu_coworker"
|
||||
name="Coworkers"
|
||||
parent="coworking.coworker"
|
||||
sequence="10"
|
||||
action="coworker_action" />
|
||||
|
||||
|
||||
</odoo>
|
@ -26,7 +26,6 @@
|
||||
'application': False,
|
||||
'installable': True,
|
||||
'data': ['security/ir.model.access.csv',
|
||||
'views/relation_menu.xml',
|
||||
'views/relation_views.xml',
|
||||
'views/coworker_views.xml'],
|
||||
'depends': ['coworking_coworker']
|
||||
|
@ -6,6 +6,5 @@
|
||||
<act_window id="relation_action" name="Relation"
|
||||
res_model="coworking.relation" view_mode="tree" />
|
||||
<!-- Menu item to open Event list -->
|
||||
<menuitem id="relation_menu" name="Relation" action="relation_action" />
|
||||
|
||||
|
||||
</odoo>
|
||||
|
@ -34,4 +34,28 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<!-- Search -->
|
||||
<record id="view_search_relation" model="ir.ui.view">
|
||||
<field name="name">relation Search</field>
|
||||
<field name="model">coworking.relation</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="coworker1" />
|
||||
<field name="coworker2" />
|
||||
<field name="relation" />
|
||||
|
||||
<separator />
|
||||
|
||||
<filter name="group_relation" string="Group relation"
|
||||
context="{'group_by': 'relation'}" />
|
||||
|
||||
<filter name="group_coworker1" string="Group coworker1"
|
||||
context="{'group_by': 'coworker1'}" />
|
||||
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
|
Loading…
Reference in New Issue
Block a user