<?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="credential_view_form">
            <field name="model">carrier.credential.sendcloud</field>
            <field name="type">form</field>
            <field name="name">credential_form</field>
        </record>
        <record model="ir.ui.view" id="credential_view_list">
            <field name="model">carrier.credential.sendcloud</field>
            <field name="type">tree</field>
            <field name="name">credential_list</field>
        </record>

        <record model="ir.action.act_window" id="act_credential_form">
            <field name="name">Sendcloud Credentials</field>
            <field name="res_model">carrier.credential.sendcloud</field>
        </record>
        <record model="ir.action.act_window.view" id="act_credential_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="credential_view_list"/>
            <field name="act_window" ref="act_credential_form"/>
        </record>
        <record model="ir.action.act_window.view" id="act_credential_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="credential_view_form"/>
            <field name="act_window" ref="act_credential_form"/>
        </record>
        <menuitem
            parent="carrier.menu_configuration"
            action="act_credential_form"
            sequence="20"
            id="menu_credential_form"/>

        <record model="ir.model.access" id="access_credential">
            <field name="model">carrier.credential.sendcloud</field>
            <field name="perm_read" eval="False"/>
            <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_carrier_credential_carrier_admin">
            <field name="model">carrier.credential.sendcloud</field>
            <field name="group" ref="carrier.group_carrier_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>

        <record model="ir.ui.view" id="carrier_address_view_form">
            <field name="model">carrier.sendcloud.address</field>
            <field name="type">form</field>
            <field name="name">carrier_address_form</field>
        </record>
        <record model="ir.ui.view" id="carrier_address_view_list">
            <field name="model">carrier.sendcloud.address</field>
            <field name="type">tree</field>
            <field name="name">carrier_address_list</field>
        </record>

        <record model="ir.model.access" id="access_carrier_address">
            <field name="model">carrier.sendcloud.address</field>
            <field name="perm_read" eval="False"/>
            <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_carrier_address_carrier_admin">
            <field name="model">carrier.sendcloud.address</field>
            <field name="group" ref="carrier.group_carrier_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>

        <record model="ir.ui.view" id="carrier_shipping_method_view_form">
            <field name="model">carrier.sendcloud.shipping_method</field>
            <field name="type">form</field>
            <field name="name">carrier_shipping_method_form</field>
        </record>
        <record model="ir.ui.view" id="carrier_shipping_method_view_list">
            <field name="model">carrier.sendcloud.shipping_method</field>
            <field name="type">tree</field>
            <field name="name">carrier_shipping_method_list</field>
        </record>

        <record model="ir.model.access" id="access_carrier_shipping_method">
            <field name="model">carrier.sendcloud.shipping_method</field>
            <field name="perm_read" eval="False"/>
            <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_carrier_shipping_method_carrier_admin">
            <field name="model">carrier.sendcloud.shipping_method</field>
            <field name="group" ref="carrier.group_carrier_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>

        <record model="ir.ui.view" id="carrier_view_form">
            <field name="model">carrier</field>
            <field name="inherit" ref="carrier.carrier_view_form"/>
            <field name="name">carrier_form</field>
        </record>
    </data>
</tryton>
