trytonpsk-hotel/location.xml
Camilo Sarmiento 20f569e9d4 migrate to git
2020-04-16 07:45:13 -05:00

60 lines
2.7 KiB
XML

<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="location_view_tree">
<field name="model">hotel.location</field>
<field name="type">tree</field>
<field name="priority">50</field>
<field name="name">location_tree</field>
</record>
<record model="ir.ui.view" id="location_view_tree2">
<field name="model">hotel.location</field>
<field name="type">tree</field>
<field name="priority">20</field>
<field name="field_childs">childs</field>
<field name="name">location_tree2</field>
</record>
<record model="ir.ui.view" id="location_view_form">
<field name="model">hotel.location</field>
<field name="type">form</field>
<field name="name">location_form</field>
</record>
<record model="ir.action.act_window" id="act_location_tree">
<field name="name">Locations</field>
<field name="res_model">hotel.location</field>
<field name="domain" eval="[('parent', '=', None)]" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_location_tree_view1">
<field name="sequence" eval="1"/>
<field name="view" ref="location_view_tree2"/>
<field name="act_window" ref="act_location_tree"/>
</record>
<record model="ir.action.act_window.view" id="act_location_tree_view2">
<field name="sequence" eval="2"/>
<field name="view" ref="location_view_form"/>
<field name="act_window" ref="act_location_tree"/>
</record>
<menuitem parent="hotel.menu_configuration" sequence="30"
action="act_location_tree" id="menu_location_tree"/>
<record model="ir.model.access" id="access_hotel_location">
<field name="model" search="[('model', '=', 'hotel.location')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_hotel_location_admin">
<field name="model" search="[('model', '=', 'hotel.location')]"/>
<field name="group" ref="group_hotel_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
</data>
</tryton>