-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinvoice.xml
75 lines (70 loc) · 3.63 KB
/
invoice.xml
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
<!-- 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="[If(Eval('active_ids', []) == [Eval('active_id')], ('origin.invoice', '=', Eval('active_id'), 'account.invoice.line'), ('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="[If(Eval('active_ids', []) == [Eval('active_id')], ('invoice_line.invoice', '=', Eval('active_id')), ('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>
<record model="ir.ui.view" id="account_invoice_credit_start_view_form">
<field name="model">account.invoice.credit.start</field>
<field name="inherit" ref="account_invoice.credit_start_view_form"/>
<field name="name">account_invoice_credit_start_form</field>
</record>
</data>
</tryton>