~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to financing_contract/financing_contract_view.xml

  • Committer: Matthieu Dietrich
  • Date: 2012-07-10 14:12:40 UTC
  • mfrom: (913 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 935.
  • Revision ID: mdietrich@chloups211-20120710141240-celi3o016fqz7mj1
UF-881: [MERGE] merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0"?>
2
2
<openerp>
3
3
      <data>
4
 
            
 
4
 
5
5
            <record id="view_financing_contract_contract_form" model="ir.ui.view">
6
6
                <field name="name">financing.contract.contract.form</field>
7
7
                <field name="model">financing.contract.contract</field>
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'))]}"/>
24
 
                                        </group>
 
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'))]}"/>
 
24
                                </group>
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'))]}"/>
 
29
                                </group>
 
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"/>
29
34
                                </group>
30
35
                            </page>
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"/>
70
75
                                        </group>
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'"
75
 
                                                   digits="(24,0)"
76
 
                                                       colspan="2"/>
77
 
                                                <field name="project_budget_value"
78
 
                                                       string="Total project - Budget"
79
 
                                                       invisible="context.get('reporting_type')=='allocated'"
80
 
                                                   digits="(24,0)"
81
 
                                                       colspan="2"/>
 
77
                                            <field name="allocated_budget_value"
 
78
                                                   string="Funded - Budget"
 
79
                                                   invisible="context.get('reporting_type')=='project'"
 
80
                                                   digits="(24,0)"
 
81
                                                   colspan="2"/>
 
82
                                            <field name="project_budget_value"
 
83
                                                   string="Total project - Budget"
 
84
                                                   invisible="context.get('reporting_type')=='allocated'"
 
85
                                                   digits="(24,0)"
 
86
                                                   colspan="2"/>
82
87
                                        </group>
83
88
                                        <group colspan="4" col="4" attrs="{'invisible': [('line_type', '!=', 'consumption')]}">
84
89
                                            <field name="allocated_real_value"
104
109
                                </field>
105
110
                            </page>
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'))]}"/>
108
113
                            </page>
109
114
                        </notebook>
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"/>
115
120
                        </group>
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"/>
120
125
                    </form>
121
126
                </field>
122
127
            </record>
123
 
            
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>
 
128
 
 
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" />
137
142
                </field>
138
143
            </record>
139
144
 
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">
146
 
                            <field name="code"/>
147
 
                            <field name="name"/>
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">
 
151
                        <field name="code"/>
 
152
                        <field name="name"/>
 
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"/>
155
 
                        </tree>
156
 
                    </field>
157
 
                </record>
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">
164
 
                            <group>
165
 
                                    <filter name="active" icon="terp-check" string="Active"
166
 
                                            domain="[('eligibility_from_date', '&lt;=', datetime.date.today().strftime('%%Y-%%m-%%d')),
167
 
                                                     ('eligibility_to_date', '&gt;', datetime.date.today().strftime('%%Y-%%m-%%d'))]"/>
168
 
                                <separator orientation="vertical"/>
169
 
                                <field name="code"/>
170
 
                                <field name="name"/>
171
 
                                <field name="hq_grant_reference"/>
172
 
                                <field name="donor_id"/>
 
160
                    </tree>
 
161
                </field>
 
162
            </record>
 
163
 
 
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">
 
170
                        <group>
 
171
                            <filter name="active" icon="terp-check" string="Active"
 
172
                                    domain="[('eligibility_from_date', '&lt;=', datetime.date.today().strftime('%%Y-%%m-%%d')),
 
173
                                             ('eligibility_to_date', '&gt;', datetime.date.today().strftime('%%Y-%%m-%%d'))]"/>
 
174
                            <separator orientation="vertical"/>
 
175
                            <field name="code"/>
 
176
                            <field name="name"/>
 
177
                            <field name="hq_grant_reference"/>
 
178
                            <field name="donor_id"/>
173
179
                            <field name="reporting_currency"/>
174
 
                            </group>
175
 
                        </search>
176
 
                    </field>
177
 
                </record>
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>
183
 
                </record>
184
 
                
185
 
                
186
 
            
 
180
                        </group>
 
181
                    </search>
 
182
                </field>
 
183
            </record>
 
184
 
 
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>
 
190
            </record>
 
191
 
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>
195
200
                        <newline/>
196
201
                        <field name="reporting_type"/>
197
202
                        <field name="active" colspan="2"/>
 
203
                        <newline/>
 
204
                        <field name="overhead_type"/>
 
205
                        <field name="overhead_percentage" colspan="2"/>
198
206
                        <separator string="Dates"/>
199
207
                        <notebook colspan="4">
200
208
                            <page string="Reporting lines">
229
237
                    </form>
230
238
                </field>
231
239
            </record>
232
 
            
 
240
 
233
241
            <record id="view_financing_contract_donor_tree" model="ir.ui.view">
234
242
                <field name="name">financing.contract.donor.tree</field>
235
243
                <field name="model">financing.contract.donor</field>
241
249
                    </tree>
242
250
                </field>
243
251
            </record>
 
252
 
244
253
            <record id="view_financing_contract_donor_search" model="ir.ui.view">
245
254
                <field name="name">financing.contract.donor.search</field>
246
255
                <field name="model">financing.contract.donor</field>
257
266
                    </search>
258
267
                </field>
259
268
            </record>
 
269
 
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>
265
275
            </record>
 
276
 
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"/>
269
280
 
270
 
 
271
 
 
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&lt;current_date);black:(date&gt;=current_date);black:(date==False)" string="Analytic Accounts" 
279
 
                         toolbar="1" hide_new_button="1" hide_delete_button="1" editable="top" noteditable="1">
280
 
                            <field name="name"/>
281
 
                            <field name="code"/>
282
 
                            <field name="description"/>
283
 
                            <field name="category"/>
284
 
                            <field name="type" />
285
 
                            <field name="date_start"/>
286
 
                            <field name="date"/>
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"/>
289
 
                        </tree>
290
 
                    </field>
291
 
                </record>
292
 
 
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>
300
 
                </record>
301
 
 
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&lt;current_date);black:(date&gt;=current_date);black:(date==False)" string="Analytic Accounts" 
 
288
                     toolbar="1" hide_new_button="1" hide_delete_button="1" editable="top" noteditable="1">
 
289
                        <field name="name"/>
 
290
                        <field name="code"/>
 
291
                        <field name="description"/>
 
292
                        <field name="category"/>
 
293
                        <field name="type" />
 
294
                        <field name="date_start"/>
 
295
                        <field name="date"/>
 
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"/>
 
298
                    </tree>
 
299
                </field>
 
300
            </record>
 
301
 
 
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>
 
309
            </record>
 
310
 
 
311
            <menuitem action="action_account_analytic_account_form" id="menu_action_account_analytic_account_form" parent="donor_reporting_menu" />
303
312
 
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>
312
321
                    </tree>
313
322
                </field>
314
323
            </record>
315
 
            
 
324
 
316
325
            <record id="view_donor_reporting_line_tree_all" model="ir.ui.view">
317
326
                <field name="name">financing.contract.donor.reporting.line.tree.all</field>
318
327
                <field name="model">financing.contract.donor.reporting.line</field>
331
340
                    </tree>
332
341
                </field>
333
342
            </record>
334
 
            
 
343
 
335
344
            <record id="view_donor_reporting_line_tree_allocated" model="ir.ui.view">
336
345
                <field name="name">financing.contract.donor.reporting.line.tree.allocated</field>
337
346
                <field name="model">financing.contract.donor.reporting.line</field>
348
357
                    </tree>
349
358
                </field>
350
359
            </record>
351
 
            
 
360
 
352
361
            <record id="view_donor_reporting_line_tree_project" model="ir.ui.view">
353
362
                <field name="name">financing.contract.donor.reporting.line.tree.project</field>
354
363
                <field name="model">financing.contract.donor.reporting.line</field>
365
374
                    </tree>
366
375
                </field>
367
376
            </record>
368
 
            
 
377
 
 
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"/>
 
389
                        </group>
 
390
                    </form>
 
391
                </field>
 
392
            </record>
 
393
 
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"/>
382
407
            </record>
383
408
 
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>
391
 
                </record>
392
 
        
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"/>
399
 
                </record>
400
 
                    
 
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>
 
416
            </record>
 
417
 
 
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"/>
 
424
            </record>
 
425
 
401
426
       </data>
402
427
</openerp>