File: carrier.xml

package info (click to toggle)
tryton-modules-stock-package-shipping-dpd 5.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 336 kB
  • sloc: python: 409; xml: 80; makefile: 6; sh: 3
file content (58 lines) | stat: -rw-r--r-- 2,576 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?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.dpd</field>
            <field name="type">form</field>
            <field name="name">dpd_credential_form</field>
        </record>
        <record model="ir.ui.view" id="credential_view_tree">
            <field name="model">carrier.credential.dpd</field>
            <field name="type">tree</field>
            <field name="name">dpd_credential_list</field>
        </record>

        <record model="ir.action.act_window" id="act_dpd_credential_form">
            <field name="name">DPD Credentials</field>
            <field name="res_model">carrier.credential.dpd</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_dpd_credential_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="credential_view_tree"/>
            <field name="act_window" ref="act_dpd_credential_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_dpd_credential_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="credential_view_form"/>
            <field name="act_window" ref="act_dpd_credential_form"/>
        </record>

        <menuitem 
            parent="stock_package_shipping.menu_package_shipping_configuration"
            action="act_dpd_credential_form" id="menu_dpd_credential_form"/>

        <record model="ir.model.access" id="access_carrier_credential">
            <field name="model"
                search="[('model', '=', 'carrier.credential.dpd')]"/>
            <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"
                search="[('model', '=', 'carrier.credential.dpd')]"/>
            <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>

    </data>
</tryton>