forked from OCA/l10n-italy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
riba_view.xml
181 lines (174 loc) · 10.8 KB
/
riba_view.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<menuitem name="Ri.Ba." parent="account.menu_finance" id="menu_riba" icon="STOCK_OPEN" />
<!-- ====================================================== -->
<!-- DISTINTA RIBA - FILTRI -->
<!-- ====================================================== -->
<record id="view_distinta_riba_filtri" model="ir.ui.view">
<field name="name">riba.distinta.filtri</field>
<field name="model">riba.distinta</field>
<field name="arch" type="xml">
<search string="Distinte Ri.Ba.">
<filter icon="terp-check" string="Draft" domain="[('state','=','draft')]" help="Draft"/>
<filter icon="terp-dolar" string="Confirmed" domain="[('state','=','accepted')]" help="Accepted"/>
<filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','paid')]" help="Paid"/>
<separator orientation="vertical"/>
<field name="name" />
<field name="config" />
<field name="date_accepted" />
<field name="date_paid" />
</search>
</field>
</record>
<!-- ====================================================== -->
<!-- DISTINTA RIBA TREE -->
<!-- ====================================================== -->
<record model="ir.ui.view" id="view_distinta_riba_tree">
<field name="name">riba.distinta.tree</field>
<field name="model">riba.distinta</field>
<field name="arch" type="xml">
<tree string="Distinte Ri.Ba.">
<field name="name" />
<field name="config" />
<field name="date_accepted" />
<field name="date_paid" />
<field name="state" />
</tree>
</field>
</record>
<!-- ====================================================== -->
<!-- DISTINTA RIBA FORM -->
<!-- ====================================================== -->
<record model="ir.ui.view" id="view_distinta_riba_form">
<field name="name">riba.distinta.form</field>
<field name="model">riba.distinta</field>
<field name="arch" type="xml">
<form string="Ri.Ba. - Distinta">
<field name="name" />
<field name="config" widget="selection"/>
<field name="registration_date" />
<notebook colspan="4">
<page string="General">
<field name="line_ids" nolabel="1" colspan="4">
<tree string="Detail">
<field name="sequence"/>
<field name="invoice_number"/>
<field name="invoice_date"/>
<field name="partner_id"/>
<field name="iban"/>
<field name="amount" sum="Amount"/>
<field name="due_date"/>
<field name="state"/>
<button name="%(riba_unsolved_action)d" type='action' attrs="{'invisible':['|',('type','=','incasso'),('state','!=','accredited')]}" string="Unsolved" icon="terp-dolar_ok!"/>
<field name="type" invisible="1" />
</tree>
<form string="Detail">
<notebook colspan="4">
<page string="General">
<field name="sequence"/>
<field name="invoice_number"/>
<field name="invoice_date"/>
<field name="partner_id"/>
<field name="amount" />
<field name="due_date"/>
<field name="state"/>
<field name="reconciled" />
</page>
<page string="Accounting">
<separator string="Invoice entries" colspan="4"/>
<field name="move_line_ids" nolabel="1" colspan="4">
<tree string="Move lines">
<field name="amount" />
<field name="move_line_id"/>
</tree>
<form string="Move line">
<field name="amount" />
<field name="move_line_id"/>
</form>
</field>
<field name="acceptance_account_id"/>
<field name="acceptance_move_id"/>
<separator string="Payments" colspan="4"/>
<field name="payment_ids" nolabel="1" colspan="4">
<tree string="Payments">
<field name="date"/>
<field name="move_id"/>
<field name="ref"/>
<field name="name"/>
<field name="journal_id" groups="base.group_user"/>
<field name="debit"/>
<field name="credit"/>
<field name="amount_currency"/>
<field name="currency_id"/>
</tree>
</field>
<field name="unsolved_move_id"/>
</page>
</notebook>
</form>
</field>
<group col="2" colspan="2">
<field name="state" readonly="1" nolabel="1" colspan="2" />
<field name="type" invisible="1" />
</group>
<group col="2" colspan="2">
<button name="confirm" type='object' string="Accepted" icon="gtk-apply" attrs="{'invisible':['|',('state','!=','draft'),('type','=','incasso')]}"/>
<button name="%(riba_accreditation_action)d" type='action' attrs="{'invisible':['|',('state','!=','accepted'),('type','=','incasso')]}" string="Accredited" icon="gtk-apply"/>
<button name="cancel" attrs="{'invisible':[('state','=','cancel')]}" string="Cancel" icon="gtk-cancel"/>
<button name="action_cancel_draft" attrs="{'invisible':['|',('state','!=','cancel'),('type','=','incasso')]}" string="Reset to Draft" type="object" icon="terp-stock_effects-object-colorize"/>
</group>
</page>
<page string="Other Info">
<field name="user_id" />
<newline/>
<field name="date_created" />
<field name="date_accepted" />
<field name="date_accreditation" />
<field name="date_paid" />
</page>
<page string="Accounting">
<separator colspan="4" string="Acceptance Entries"/>
<field name='acceptance_move_ids' colspan="4" nolabel="1"/>
<separator colspan="4" string="Accreditation Entry"/>
<field name='accreditation_move_id' colspan="4" nolabel="1"/>
<separator colspan="4" string="Payments"/>
<field name='payment_ids' colspan="4" nolabel="1">
<tree string="Payments">
<field name="date"/>
<field name="move_id"/>
<field name="ref"/>
<field name="name"/>
<field name="journal_id" groups="base.group_user"/>
<field name="debit"/>
<field name="credit"/>
<field name="amount_currency"/>
<field name="currency_id"/>
</tree>
</field>
<separator colspan="4" string="Unsolved"/>
<field name='unsolved_move_ids' colspan="4" nolabel="1"/>
</page>
</notebook>
</form>
</field>
</record>
<!-- ====================================================== -->
<!-- ACTION DISTINTA RIBA -->
<!-- ====================================================== -->
<record id="distinta_riba_action" model="ir.actions.act_window">
<field name="name">Distinta Ri.Ba.</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">riba.distinta</field>
<field name="src_model">riba.distinta</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="view_distinta_riba_filtri"/>
</record>
<!-- ====================================================== -->
<!-- DISTINTA RIBA - MENU -->
<!-- ====================================================== -->
<menuitem name="Distinte" parent="menu_riba"
id="menu_riba_distinte" action="distinta_riba_action" />
</data>
</openerp>