11
11
<field name="code" colspan="1" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
12
12
<field name="name" colspan="1" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
13
13
<field name="donor_id" colspan="2" on_change="onchange_donor_id(donor_id, format_id, actual_line_ids)"
14
attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
15
<field name="instance_level" invisible="1" />
16
<field name="instance_id" colspan="1" domain="[('level','=','coordo')]" attrs="{'readonly': ['|', ('state','in',('soft_closed','hard_closed')), ('instance_level', '!=', 'section')]}" />
14
attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
17
15
<field name="reporting_type" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
18
16
<separator string="Dates"/>
19
17
<field name="eligibility_from_date" on_change="onchange_date(eligibility_from_date, eligibility_to_date)"
60
58
<page string="Reporting lines">
61
<field name="format_id" invisible="1" required="0"/>
59
<field name="format_id" invisible="1"/>
62
60
<field colspan="4" name="actual_line_ids" nolabel="1" context="{'reporting_type': reporting_type, 'contract_id': active_id}" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}">
63
61
<tree string="Reporting lines" colors="blue:line_type in ('view')">
64
62
<field name="code"/>
105
103
<field name="overhead_type" colspan="2" attrs="{'required': [('line_type', '=', 'overhead')]}"/>
106
104
<field name="overhead_percentage" colspan="2" attrs="{'required': [('line_type', '=', 'overhead')]}"/>
108
<button name="button_delete_all_quads" type="object" string="Remove all quads" icon="gtk-clear" colspan="1"
109
attrs="{'invisible': [('is_quadruplet', '=', False)]}" />
110
<button name="button_delete_all_couples" type="object" string="Remove all couples" icon="gtk-clear" colspan="1"
111
attrs="{'invisible': [('is_quadruplet', '=', True)]}" />
112
<field name="is_quadruplet" attrs="{'invisible': [('line_type', '=', 'view')]}"/>
113
<field name="account_destination_ids" colspan="4" string="Account/Destination" nolabel="1"
115
attrs="{'invisible': [('|'), ('line_type', '=', 'view'), ('is_quadruplet', '=', True)]}">
117
<field name="account_quadruplet_ids" colspan="4" string="Account/Destination/Funding Pool/Cost Centre" nolabel="1"
119
attrs="{'invisible': [('|'), ('line_type', '=', 'view'), ('is_quadruplet', '!=', True)]}"
120
domain="[('can_be_used','=',True)]">
106
<field name="account_destination_ids" colspan="4" string="Account/Destination"
108
attrs="{'invisible': [('line_type', '=', 'view')]}">
132
120
<field name="hard_closed_date" colspan="2" readonly="1"/>
133
121
<field name="state" colspan="2" readonly="1"/>
135
<button name="contract_open_proxy" states="draft" string="Open" type="object" icon="gtk-go-forward"/>
136
<button name="contract_soft_closed_proxy" states="open" string="Soft-close" type="object" icon="gtk-go-forward"/>
123
<button name="contract_open" states="draft" string="Open" type="workflow" icon="gtk-go-forward"/>
124
<button name="contract_soft_closed" states="open" string="Soft-close" type="workflow" icon="gtk-go-forward"/>
137
125
<button name="contract_reopen" states="soft_closed" string="Re-Open" type="workflow" icon="gtk-go-forward"/>
138
<button name="contract_hard_closed_proxy" states="soft_closed" string="Hard-close" type="object" icon="gtk-ok"/>
143
<record id="view_financing_contract_contract_warning_form" model="ir.ui.view">
144
<field name="name">wizard.financing.contract.contract.warning.form</field>
145
<field name="model">wizard.financing.contract.contract.warning</field>
146
<field name="type">form</field>
147
<field name="arch" type="xml">
148
<form string="Financing Contract Warning">
149
<field name="warn_message" nolabel="1" />
151
<button name="btn_close" type="object" string="OK" icon="gtk-ok"/>
126
<button name="contract_hard_closed" states="soft_closed" string="Hard-close" type="workflow" icon="gtk-ok"/>
171
<record id="view_financing_contract_account_quadruplet_tree" model="ir.ui.view">
172
<field name="name">financing.contract.account.quadruplet.tree</field>
173
<field name="model">financing.contract.account.quadruplet</field>
174
<field name="type">tree</field>
175
<field name="arch" type="xml">
176
<tree string="Account/Destination/Funding Pool/Cost Centre" colors="grey:used_in_contract" notselectable="used_in_contract" editable="top" noteditable="1">
177
<field name="can_be_used" invisible="1"/>
178
<field name="account_destination_name"/>
179
<field name="funding_pool_id"/>
180
<field name="cost_center_id"/>
181
<field name="used_in_contract" invisible="1"/>
186
<record id="view_financing_contract_account_quadruplet_form" model="ir.ui.view">
187
<field name="name">financing.contract.account.quadruplet.form</field>
188
<field name="model">financing.contract.account.quadruplet</field>
189
<field name="type">form</field>
190
<field name="arch" type="xml">
192
<field name="account_destination_name" readonly="1" />
193
<field name="account_destination_id"/>
194
<field name="funding_pool_id" domain="[('category', '=', 'FUNDING')]"/>
195
<field name="cost_center_id" domain="[('category', '=', 'OC')]"/>
196
<!-- UTP-908 FIXME hiding format_id pre-filled with 'Format' (click on m2o gives let me fix) -->
197
<field name="format_id" invisible="1"/>
198
<field name="used_in_contract" invisible='1'/>
203
<record id="view_financing_contract_account_quadruplet_search" model="ir.ui.view">
204
<field name="name">financing.contract.account.quadruplet.search</field>
205
<field name="model">financing.contract.account.quadruplet</field>
206
<field name="type">search</field>
207
<field name="arch" type="xml">
208
<search string="Search Account/Destination/Funding Pool/Cost Centre">
209
<field name="account_destination_name" string="Account"/>
210
<field name="funding_pool_id" domain="[('category', '=', 'FUNDING')]"/>
211
<field name="cost_center_id" domain="[('category', '=', 'OC')]"/>
216
146
<record id="view_financing_contract_contract_tree" model="ir.ui.view">
217
147
<field name="name">financing.contract.contract.tree</field>
218
148
<field name="model">financing.contract.contract</field>
239
169
<field name="arch" type="xml">
240
170
<search string="Search Fiscalyear">
242
<filter string="Draft" name="draft" icon="terp-document-new" domain="[('state', '=', 'draft')]"/>
243
<filter string="Open" name="open" icon="terp-camera_test" domain="[('state', '=', 'open')]"/>
244
<filter string="Soft closed" name="soft_closed" icon="terp-gtk-media-pause" domain="[('state', '=', 'soft_closed')]"/>
245
<filter string="Hard closed" name="hard_closed" icon="terp-dialog-close" domain="[('state', '=', 'hard_closed')]"/>
172
<filter name="active" icon="terp-check" string="Active"
173
domain="[('eligibility_from_date', '<=', datetime.date.today().strftime('%%Y-%%m-%%d')),
174
('eligibility_to_date', '>', datetime.date.today().strftime('%%Y-%%m-%%d'))]"/>
246
175
<separator orientation="vertical"/>
247
176
<field name="code"/>
248
177
<field name="name"/>
250
178
<field name="hq_grant_reference"/>
251
179
<field name="donor_id"/>
252
180
<field name="reporting_currency"/>
274
202
<field name="reporting_type"/>
275
203
<field name="active" colspan="2"/>
276
<field name="reporting_currency"/>
278
205
<field name="overhead_type"/>
279
206
<field name="overhead_percentage" colspan="2"/>
280
207
<separator string="Dates"/>
281
208
<notebook colspan="4">
282
209
<page string="Reporting lines">
283
<field name="format_id" invisible="1" required="0"/>
210
<field name="format_id" invisible="1"/>
284
211
<field colspan="4" name="actual_line_ids" nolabel="1" context="{'donor_id': active_id}">
285
212
<tree string="Reporting lines" colors="black:line_type in ('normal');blue:line_type in ('view')">
286
213
<field name="code"/>
332
259
<search string="Search Fiscalyear">
334
261
<filter name="active" icon="terp-check" string="Active"
335
domain="[('active', '=', True)]"/>
336
<filter name="inactive" icon="gtk-dialog-error" string="Inactive"
337
domain="[('active', '=', False)]"/>
262
domain="[('active', '=', True)]"/>
338
263
<separator orientation="vertical"/>
339
264
<field name="code"/>
340
265
<field name="name"/>
348
273
<field name="res_model">financing.contract.donor</field>
349
274
<field name="view_type">form</field>
350
275
<field name="view_mode">tree,form</field>
351
<field name="domain">[('active', 'in', ['t', 'f'])]</field>
353
277
<menuitem id="donor_reporting_menu" name="Grant Management" parent="account.menu_finance" sequence="12"/>
354
278
<menuitem action="action_financing_contract_contract_form" id="menu_action_financing_contract_contract_form" parent="donor_reporting_menu"/>
410
334
<field name="line_type"/>
411
335
<field name="allocated_budget" digits="(24,0)" widget="float"/>
412
336
<field name="allocated_real" digits="(24,0)" widget="float"/>
413
<field name="allocated_balance" digits="(24,0)" widget="float"/>
414
337
<field name="project_budget" digits="(24,0)" widget="float"/>
415
338
<field name="project_real" digits="(24,0)" widget="float"/>
416
<field name="project_balance" digits="(24,0)" widget="float"/>
417
339
<field name="parent_id" invisible="1"/>
484
406
<field eval="True" name="object"/>
487
<!-- Allocated expense report -->
488
<record id="act_allocated_expenses_report" model="ir.actions.server">
489
<field name="name">Allocated Expenses</field>
490
<field name="model_id" ref="model_financing_contract_contract"/>
491
<field name="state">code</field>
492
<field name="code">action = obj.allocated_expenses_report(context=context)</field>
495
<record id="ir_allocated_expenses_report" model="ir.values">
496
<field eval="'client_print_multi'" name="key2"/>
497
<field eval="'financing.contract.contract'" name="model"/>
498
<field name="name">Allocated Expenses</field>
499
<field eval="'ir.actions.server,%d'%act_allocated_expenses_report" name="value"/>
500
<field eval="True" name="object"/>
501
<field name="sequence" eval="1"/>
504
409
<record id="action_open_analytic_lines_button" model="ir.actions.act_window">
505
410
<field name="name">Analytic Items</field>
506
411
<field name="res_model">account.analytic.line</field>