File: invoice.xml

package info (click to toggle)
tryton-modules-commission 4.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 568 kB
  • ctags: 199
  • sloc: python: 819; xml: 484; makefile: 6
file content (69 lines) | stat: -rw-r--r-- 3,171 bytes parent folder | download
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
<!-- 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="invoice_view_form">
            <field name="model">account.invoice</field>
            <field name="inherit" ref="account_invoice.invoice_view_form"/>
            <field name="name">invoice_form</field>
        </record>

        <record model="ir.ui.view" id="invoice_line_view_form">
            <field name="model">account.invoice.line</field>
            <field name="inherit" ref="account_invoice.invoice_line_view_form"/>
            <field name="name">invoice_line_form</field>
        </record>

        <record model="ir.action.act_window" id="act_commission_relate">
            <field name="name">Commissions</field>
            <field name="res_model">commission</field>
            <field name="domain"
                eval="[('origin.invoice', 'in', Eval('active_ids'), 'account.invoice.line')]"
                pyson="1"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_commission_relate_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="commission_view_list"/>
            <field name="act_window" ref="act_commission_relate"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_commission_relate_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="commission_view_form"/>
            <field name="act_window" ref="act_commission_relate"/>
        </record>
        <record model="ir.action.keyword" id="act_commission_relate_keyword">
            <field name="keyword">form_relate</field>
            <field name="model">account.invoice,-1</field>
            <field name="action" ref="act_commission_relate"/>
        </record>

        <record model="ir.action.act_window" id="act_commission_from_relate">
            <field name="name">From Commissions</field>
            <field name="res_model">commission</field>
            <field name="domain"
                eval="[('invoice_line.invoice', 'in', Eval('active_ids'))]"
                pyson="1"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_commission_from_relate_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="commission_view_list"/>
            <field name="act_window" ref="act_commission_from_relate"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_commission_from_relate_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="commission_view_form"/>
            <field name="act_window" ref="act_commission_from_relate"/>
        </record>
        <record model="ir.action.keyword"
            id="act_commission_from_relate_keyword">
            <field name="keyword">form_relate</field>
            <field name="model">account.invoice,-1</field>
            <field name="action" ref="act_commission_from_relate"/>
        </record>

    </data>
</tryton>