trytond-party_relationship/party.xml

72 lines
2.9 KiB
XML
Raw Permalink Normal View History

2013-10-18 18:40:11 +02:00
<?xml version="1.0"?>
<tryton>
<data>
<record model="ir.ui.view" id="relation_type_view_tree">
<field name="model">party.relation.type</field>
<field name="type">tree</field>
<field name="name">relation_type_tree</field>
</record>
<record model="ir.ui.view" id="relation_type_view_form">
<field name="model">party.relation.type</field>
<field name="type">form</field>
<field name="name">relation_type_form</field>
</record>
<record model="ir.ui.view" id="party_view_form">
<field name="model">party.party</field>
<field name="inherit" ref="party.party_view_form"/>
<field name="name">party_form</field>
</record>
<record model="ir.ui.view" id="relation_view_tree">
<field name="model">party.relation.all</field>
<field name="type">tree</field>
<field name="name">relation_tree</field>
</record>
<record model="ir.ui.view" id="relation_view_form">
<field name="model">party.relation.all</field>
<field name="type">form</field>
<field name="name">relation_form</field>
</record>
<record model="ir.action.act_window" id="act_relation_type">
<field name="name">Relation Types</field>
<field name="res_model">party.relation.type</field>
</record>
<record model="ir.action.act_window.view" id="act_relation_type_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="relation_type_view_tree"/>
<field name="act_window" ref="act_relation_type"/>
</record>
<record model="ir.action.act_window.view" id="act_relation_type_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="relation_type_view_form"/>
<field name="act_window" ref="act_relation_type"/>
</record>
<record model="ir.model.access" id="access_relation_type">
<field name="model" search="[('model', '=', 'party.relation.type')]"/>
<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_relation_type_admin">
<field name="model" search="[('model', '=', 'party.relation.type')]"/>
<field name="group" ref="party.group_party_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>
<menuitem parent="party.menu_configuration" action="act_relation_type"
id="menu_relation_type" sequence="20" icon="tryton-list"/>
</data>
</tryton>