File: stock.xml

package info (click to toggle)
tryton-modules-purchase 5.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,252 kB
  • sloc: python: 2,723; xml: 1,049; makefile: 6; sh: 3
file content (96 lines) | stat: -rw-r--r-- 4,642 bytes parent folder | download | duplicates (2)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?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="move_view_list_shipment">
            <field name="model">stock.move</field>
            <field name="type">tree</field>
            <field name="priority" eval="20"/>
            <field name="name">move_list_shipment</field>
        </record>

        <record model="ir.ui.view" id="location_view_form">
            <field name="model">stock.location</field>
            <field name="inherit" ref="stock.location_view_form"/>
            <field name="name">location_form</field>
        </record>

        <record model="ir.ui.view" id="move_view_list_shipment_in">
            <field name="model">stock.move</field>
            <field name="inherit" ref="stock.move_view_list_shipment_in"/>
            <field name="name">move_list_shipment_in</field>
        </record>

        <record model="ir.model.access" id="access_purchase_group_stock">
            <field name="model" search="[('model', '=', 'purchase.purchase')]"/>
            <field name="group" ref="stock.group_stock"/>
            <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_purchase_line_group_stock">
            <field name="model" search="[('model', '=', 'purchase.line')]"/>
            <field name="group" ref="stock.group_stock"/>
            <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.action.act_window" id="act_purchase_shipments_relate">
            <field name="name">Purchases</field>
            <field name="res_model">purchase.purchase</field>
            <field name="domain"
                eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('shipments', '=', Eval('active_id')), ('shipments', 'in', Eval('active_ids')))]"
                pyson="1"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_purchase_shipments_relate_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="purchase_view_tree"/>
            <field name="act_window" ref="act_purchase_shipments_relate"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_purchase_shipments_relate_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="purchase_view_form"/>
            <field name="act_window" ref="act_purchase_shipments_relate"/>
        </record>
        <record model="ir.action.keyword"
            id="act_purchase_shipments_relate_keyword">
            <field name="keyword">form_relate</field>
            <field name="model">stock.shipment.in,-1</field>
            <field name="action" ref="act_purchase_shipments_relate"/>
        </record>

        <record model="ir.action.act_window" id="act_purchase_shipment_returns_relate">
            <field name="name">Purchases</field>
            <field name="res_model">purchase.purchase</field>
            <field name="domain"
                eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('shipment_returns', '=', Eval('active_id')), ('shipment_returns', 'in', Eval('active_ids')))]"
                pyson="1"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_purchase_shipment_returns_relate_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="purchase_view_tree"/>
            <field name="act_window" ref="act_purchase_shipment_returns_relate"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_purchase_shipment_returns_relate_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="purchase_view_form"/>
            <field name="act_window" ref="act_purchase_shipment_returns_relate"/>
        </record>
        <record model="ir.action.keyword"
            id="act_purchase_shipment_returns_relate_keyword">
            <field name="keyword">form_relate</field>
            <field name="model">stock.shipment.in.return,-1</field>
            <field name="action" ref="act_purchase_shipment_returns_relate"/>
        </record>

    </data>
</tryton>