19
19
<notebook colspan="4">
20
20
<page string="Contract information">
21
21
<group colspan="4" col="6">
22
<field name="donor_grant_reference" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
23
<field name="hq_grant_reference" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
22
<field name="donor_grant_reference" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
23
<field name="hq_grant_reference" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
25
25
<group colspan="4" col="8">
26
<field name="grant_amount" digits="(24,0)" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
26
<field name="grant_amount" digits="(24,0)" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
27
27
<field name="currency_table_id" colspan="2" on_change="onchange_currency_table(currency_table_id, reporting_currency)" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
28
<field name="reporting_currency" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
28
<field name="reporting_currency" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
30
<group colspan="4" col="8">
31
<field name="overhead_type" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
32
<field name="overhead_percentage" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
33
<field name="overhead_amount" digits="(24,0)" colspan="2"/>
31
36
<page string="Funding pools">
66
71
<group colspan="4" col="4">
67
72
<field name="parent_id" colspan="2"
68
73
domain="[('format_id', '=', parent.format_id), ('line_type', '=', 'view'), ('code', '!=', code)]"/>
69
<field name="line_type" colspan="2"/>
74
<field name="line_type" colspan="2"/>
71
76
<group colspan="4" col="4" attrs="{'invisible': [('line_type', 'in', ('view', 'overhead'))]}">
72
<field name="allocated_budget_value"
73
string="Funded - Budget"
74
invisible="context.get('reporting_type')=='project'"
77
<field name="project_budget_value"
78
string="Total project - Budget"
79
invisible="context.get('reporting_type')=='allocated'"
77
<field name="allocated_budget_value"
78
string="Funded - Budget"
79
invisible="context.get('reporting_type')=='project'"
82
<field name="project_budget_value"
83
string="Total project - Budget"
84
invisible="context.get('reporting_type')=='allocated'"
83
88
<group colspan="4" col="4" attrs="{'invisible': [('line_type', '!=', 'consumption')]}">
84
89
<field name="allocated_real_value"
106
111
<page string="Comments">
107
<field name="notes" nolabel="1" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
112
<field name="notes" nolabel="1" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
110
115
<group col="8" colspan="4">
111
<field name="open_date" colspan="2" readonly="1"/>
112
<field name="soft_closed_date" colspan="2" readonly="1"/>
113
<field name="hard_closed_date" colspan="2" readonly="1"/>
114
<field name="state" colspan="2" readonly="1"/>
116
<field name="open_date" colspan="2" readonly="1"/>
117
<field name="soft_closed_date" colspan="2" readonly="1"/>
118
<field name="hard_closed_date" colspan="2" readonly="1"/>
119
<field name="state" colspan="2" readonly="1"/>
116
121
<button name="contract_open" states="draft" string="Open" type="workflow" icon="gtk-go-forward"/>
117
122
<button name="contract_soft_closed" states="open" string="Soft-close" type="workflow" icon="gtk-go-forward"/>
124
<record id="view_account_for_contract_tree" model="ir.ui.view">
125
<field name="name">account_for_contract.tree</field>
126
<field name="model">account.account</field>
129
<record id="view_account_for_contract_tree" model="ir.ui.view">
130
<field name="name">account_for_contract.tree</field>
131
<field name="model">account.account</field>
127
132
<field name="priority" eval="250" />
128
<field name="type">tree</field>
129
<field name="arch" type="xml">
130
<tree string="Account" colors="grey:used" notselectable="used">
133
<field name="type">tree</field>
134
<field name="arch" type="xml">
135
<tree string="Account" colors="grey:used" notselectable="used">
131
136
<field name="code" />
132
137
<field name="name" />
133
138
<field name="activation_date" />
140
<record id="view_financing_contract_contract_tree" model="ir.ui.view">
141
<field name="name">financing.contract.contract.tree</field>
142
<field name="model">financing.contract.contract</field>
143
<field name="type">tree</field>
144
<field name="arch" type="xml">
145
<tree string="Financing Contracts">
148
<field name="hq_grant_reference"/>
149
<field name="donor_id"/>
145
<record id="view_financing_contract_contract_tree" model="ir.ui.view">
146
<field name="name">financing.contract.contract.tree</field>
147
<field name="model">financing.contract.contract</field>
148
<field name="type">tree</field>
149
<field name="arch" type="xml">
150
<tree string="Financing Contracts">
153
<field name="hq_grant_reference"/>
154
<field name="donor_id"/>
150
155
<field name="grant_amount" digits="(24,0)"/>
151
156
<field name="reporting_currency"/>
152
<field name="eligibility_from_date"/>
153
<field name="eligibility_to_date"/>
157
<field name="eligibility_from_date"/>
158
<field name="eligibility_to_date"/>
154
159
<field name="state"/>
158
<record id="view_financing_contract_contract_search" model="ir.ui.view">
159
<field name="name">financing.contract.contract.search</field>
160
<field name="model">financing.contract.contract</field>
161
<field name="type">search</field>
162
<field name="arch" type="xml">
163
<search string="Search Fiscalyear">
165
<filter name="active" icon="terp-check" string="Active"
166
domain="[('eligibility_from_date', '<=', datetime.date.today().strftime('%%Y-%%m-%%d')),
167
('eligibility_to_date', '>', datetime.date.today().strftime('%%Y-%%m-%%d'))]"/>
168
<separator orientation="vertical"/>
171
<field name="hq_grant_reference"/>
172
<field name="donor_id"/>
164
<record id="view_financing_contract_contract_search" model="ir.ui.view">
165
<field name="name">financing.contract.contract.search</field>
166
<field name="model">financing.contract.contract</field>
167
<field name="type">search</field>
168
<field name="arch" type="xml">
169
<search string="Search Fiscalyear">
171
<filter name="active" icon="terp-check" string="Active"
172
domain="[('eligibility_from_date', '<=', datetime.date.today().strftime('%%Y-%%m-%%d')),
173
('eligibility_to_date', '>', datetime.date.today().strftime('%%Y-%%m-%%d'))]"/>
174
<separator orientation="vertical"/>
177
<field name="hq_grant_reference"/>
178
<field name="donor_id"/>
173
179
<field name="reporting_currency"/>
178
<record id="action_financing_contract_contract_form" model="ir.actions.act_window">
179
<field name="name">Financing Contracts</field>
180
<field name="res_model">financing.contract.contract</field>
181
<field name="view_type">form</field>
182
<field name="view_mode">tree,form</field>
185
<record id="action_financing_contract_contract_form" model="ir.actions.act_window">
186
<field name="name">Financing Contracts</field>
187
<field name="res_model">financing.contract.contract</field>
188
<field name="view_type">form</field>
189
<field name="view_mode">tree,form</field>
187
192
<record id="view_financing_contract_donor_form" model="ir.ui.view">
188
193
<field name="name">financing.contract.donor.form</field>
189
194
<field name="model">financing.contract.donor</field>
260
270
<record id="action_financing_contract_donor_form" model="ir.actions.act_window">
261
271
<field name="name">Donors</field>
262
272
<field name="res_model">financing.contract.donor</field>
263
273
<field name="view_type">form</field>
264
274
<field name="view_mode">tree,form</field>
266
277
<menuitem id="donor_reporting_menu" name="Grant Management" parent="account.menu_finance"/>
267
278
<menuitem action="action_financing_contract_contract_form" id="menu_action_financing_contract_contract_form" parent="donor_reporting_menu"/>
268
279
<menuitem action="action_financing_contract_donor_form" id="menu_action_financing_contract_donor_form" parent="donor_reporting_menu"/>
272
<record id="view_account_analytic_account_donor_tree" model="ir.ui.view">
273
<field name="name">account.analytic.account.donor.tree</field>
274
<field name="model">account.analytic.account</field>
275
<field name="type">tree</field>
276
<field name="field_parent">child_complete_ids</field>
277
<field name="arch" type="xml">
278
<tree colors="red:(date<current_date);black:(date>=current_date);black:(date==False)" string="Analytic Accounts"
279
toolbar="1" hide_new_button="1" hide_delete_button="1" editable="top" noteditable="1">
282
<field name="description"/>
283
<field name="category"/>
284
<field name="type" />
285
<field name="date_start"/>
287
<field name="parent_id" invisible="1"/>
288
<button name="button_wiz_hard_posting" states="open" string="Hard Posting" type="object" icon="terp-camera_test" context="context"/>
293
<record id="action_account_analytic_account_form" model="ir.actions.act_window">
294
<field name="name">Analytic Accounts</field>
295
<field name="res_model">account.analytic.account</field>
296
<field name="view_type">form</field>
297
<field name="domain">[('category','=','FUNDING')]</field>
298
<field name="view_id" ref="view_account_analytic_account_donor_tree"/>
299
<field name="context">{'search_default_active': 1, 'filter_inactive_accounts': 1}</field>
302
<menuitem action="action_account_analytic_account_form" id="menu_action_account_analytic_account_form" parent="donor_reporting_menu" />
281
<record id="view_account_analytic_account_donor_tree" model="ir.ui.view">
282
<field name="name">account.analytic.account.donor.tree</field>
283
<field name="model">account.analytic.account</field>
284
<field name="type">tree</field>
285
<field name="field_parent">child_complete_ids</field>
286
<field name="arch" type="xml">
287
<tree colors="red:(date<current_date);black:(date>=current_date);black:(date==False)" string="Analytic Accounts"
288
toolbar="1" hide_new_button="1" hide_delete_button="1" editable="top" noteditable="1">
291
<field name="description"/>
292
<field name="category"/>
293
<field name="type" />
294
<field name="date_start"/>
296
<field name="parent_id" invisible="1"/>
297
<button name="button_wiz_hard_posting" states="open" string="Hard Posting" type="object" icon="terp-camera_test" context="context"/>
302
<record id="action_account_analytic_account_form" model="ir.actions.act_window">
303
<field name="name">Analytic Accounts</field>
304
<field name="res_model">account.analytic.account</field>
305
<field name="view_type">form</field>
306
<field name="domain">[('category','=','FUNDING')]</field>
307
<field name="view_id" ref="view_account_analytic_account_donor_tree"/>
308
<field name="context">{'search_default_active': 1, 'filter_inactive_accounts': 1}</field>
311
<menuitem action="action_account_analytic_account_form" id="menu_action_account_analytic_account_form" parent="donor_reporting_menu" />
304
313
<record id="view_financing_contract_format_line_tree" model="ir.ui.view">
305
314
<field name="name">financing.contract.format.line.tree</field>
378
<record id="wizard_financing_currency_export_view" model="ir.ui.view">
379
<field name="name">Select output currency</field>
380
<field name="model">wizard.financing.currency.export</field>
381
<field name="type">form</field>
382
<field name="arch" type="xml">
383
<form string="Select currency">
384
<field name="out_currency" string="Select output currency"/>
385
<separator colspan="4"/>
386
<group colspan="4" col="6">
387
<button special="cancel" string="Cancel" icon="gtk-cancel"/>
388
<button name="button_create_budget" string="Create report" type="object" icon="gtk-ok"/>
369
394
<record id="act_financing_contract_donor_reporting_tree" model="ir.actions.server">
370
395
<field name="name">Interactive Report</field>
371
396
<field name="model_id" ref="model_financing_contract_contract"/>
381
406
<field eval="True" name="object"/>
384
<record id="action_open_analytic_lines_button" model="ir.actions.act_window">
385
<field name="name">Analytic Items</field>
386
<field name="res_model">account.analytic.line</field>
387
<field name="view_type">form</field>
388
<field name="view_mode">tree,form</field>
389
<field name="search_view_id" ref="account.view_account_analytic_line_filter"/>
390
<field name="context">{'search_financing_contract': 1, 'reporting_line_id': active_id}</field>
393
<record id="ir_open_donor_reporting_line" model="ir.values">
394
<field name="key2">tree_but_open</field>
395
<field name="model">financing.contract.donor.reporting.line</field>
396
<field name="name">Open Analytic Lines</field>
397
<field eval="'ir.actions.act_window,%d'%action_open_analytic_lines_button" name="value"/>
398
<field eval="True" name="object"/>
409
<record id="action_open_analytic_lines_button" model="ir.actions.act_window">
410
<field name="name">Analytic Items</field>
411
<field name="res_model">account.analytic.line</field>
412
<field name="view_type">form</field>
413
<field name="view_mode">tree,form</field>
414
<field name="search_view_id" ref="account.view_account_analytic_line_filter"/>
415
<field name="context">{'search_financing_contract': 1, 'reporting_line_id': active_id}</field>
418
<record id="ir_open_donor_reporting_line" model="ir.values">
419
<field name="key2">tree_but_open</field>
420
<field name="model">financing.contract.donor.reporting.line</field>
421
<field name="name">Open Analytic Lines</field>
422
<field eval="'ir.actions.act_window,%d'%action_open_analytic_lines_button" name="value"/>
423
<field eval="True" name="object"/>