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

« back to all changes in this revision

Viewing changes to financing_contract/financing_contract_view.xml

UF-675 [FIX] Change Number for account commitment voucher

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
                                                <field name="donor_grant_reference" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
24
24
                                                <field name="hq_grant_reference" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
25
25
                                        </group>
26
 
                                <group colspan="4" col="8">
 
26
                                <group colspan="4" col="6">
27
27
                                                <field name="grant_amount" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
28
 
                                    <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'))]}"/>
29
 
                                                <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
                                                <field name="contract_type" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
30
30
                                </group>
31
31
                            </page>
32
32
                            <page string="Funding pools">
33
33
                                <field colspan="4" name="funding_pool_ids" nolabel="1"
34
 
                                       attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}">
35
 
                                    <tree string="Funding pools" editable="top">
36
 
                                        <field name="funding_pool_id" domain="[('type', '!=', 'view'), ('category', '=', 'FUNDING'), ('code', '!=', 'PF')]"/>
37
 
                                        <field name="funded"/>
38
 
                                        <field name="total_project" readonly="1"/>
39
 
                                    </tree>
40
 
                                </field>
41
 
                            </page>
42
 
                            <page string="Cost centers">
43
 
                                <field colspan="4" name="cost_center_ids" nolabel="1"
44
 
                                       domain="[('type', '!=', 'view'), ('category', '=', 'OC')]"
45
 
                                       attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}">
46
 
                                    <tree string="Cost centers">
 
34
                                       domain="[('type', '!=', 'view'), ('category', '=', 'FUNDING'), ('code', '!=', 'PF')]" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}">
 
35
                                    <tree string="Funding pools" >
 
36
                                        <field name="code"/>
47
37
                                        <field name="name"/>
48
 
                                        <field name="code"/>
49
38
                                    </tree>
50
39
                                </field>
51
40
                            </page>
55
44
                                    <tree string="Reporting lines" colors="black:line_type in ('normal');blue:line_type in ('view')">
56
45
                                        <field name="code"/>
57
46
                                        <field name="name"/>
58
 
                                        <field name="line_type"/>
59
 
                                        <field name="allocated_budget" real_sum="Allocated Total" invisible="context.get('reporting_type')=='project'"/>
60
 
                                        <field name="project_budget" real_sum="Project Total" invisible="context.get('reporting_type')=='allocated'"/>
 
47
                                        <field name="line_type" invisible="1"/>
 
48
                                        <field name="allocated_amount" sum="Allocated Total" invisible="context.get('reporting_type')=='project'"/>
 
49
                                        <field name="project_amount" sum="Project Total" invisible="context.get('reporting_type')=='allocated'"/>
61
50
                                    </tree>
62
51
                                    <form string="Reporting lines">
63
 
                                        <group colspan="4" col="4">
 
52
                                        <group colspan="4" col="6">
64
53
                                            <field name="code" colspan="2"/>
65
54
                                            <field name="name" colspan="2"/>
66
 
                                        </group>
67
 
                                        <group colspan="4" col="4">
68
 
                                                <field name="parent_id" colspan="2"
69
 
                                                       domain="[('format_id', '=', parent.format_id), ('line_type', '=', 'view')]"/>
70
 
                                                <field name="line_type" colspan="2"/>
71
 
                                        </group>
72
 
                                        <group colspan="4" col="4" attrs="{'invisible': [('line_type', 'in', ('view', 'overhead'))]}">
73
 
                                                <field name="allocated_budget_value"
74
 
                                                       string="Funded amount - Budget"
75
 
                                                       invisible="context.get('reporting_type')=='project'"
76
 
                                                       colspan="2"/>
77
 
                                                <field name="project_budget_value"
78
 
                                                       string="Total project amount - Budget"
79
 
                                                       invisible="context.get('reporting_type')=='allocated'"
80
 
                                                       colspan="2"/>
81
 
                                        </group>
82
 
                                        <group colspan="4" col="4" attrs="{'invisible': [('line_type', '!=', 'consumption')]}">
83
 
                                            <field name="allocated_real_value"
84
 
                                                   string="Funded amount - Actuals"
85
 
                                                   invisible="context.get('reporting_type')=='project'"
86
 
                                                   colspan="2"/>
87
 
                                            <field name="project_real_value"
88
 
                                                   string="Total project amount - Actuals"
89
 
                                                   invisible="context.get('reporting_type')=='allocated'"
90
 
                                                   colspan="2"/>
91
 
                                        </group>
92
 
                                        <group colspan="4" col="4" attrs="{'invisible': [('line_type', '!=', 'overhead')]}">
93
 
                                            <field name="overhead_type" colspan="2" attrs="{'required': [('line_type', '=', 'overhead')]}"/>
94
 
                                            <field name="overhead_percentage" colspan="2" attrs="{'required': [('line_type', '=', 'overhead')]}"/>
95
 
                                        </group>
 
55
                                            <field name="parent_id" colspan="2"
 
56
                                                   domain="[('format_id', '=', parent.format_id), ('line_type', '=', 'view')]"/>
 
57
                                        </group>
 
58
                                        <field name="line_type"/>
 
59
                                        <field name="allocated_amount" attrs="{'invisible': [('line_type', '=', 'view')]}" invisible="context.get('reporting_type')=='project'"/>
 
60
                                        <field name="project_amount" attrs="{'invisible': [('line_type', '=', 'view')]}" invisible="context.get('reporting_type')=='allocated'"/>
96
61
                                        <field name="account_ids" colspan="4" string="Expense accounts"
97
62
                                               domain="[('type', '!=', 'view'), ('user_type_code', '=', 'expense')]"
98
63
                                               attrs="{'invisible': [('line_type', '=', 'view')]}"/>
99
64
                                    </form>
100
65
                                </field>
101
66
                            </page>
 
67
                            <page string="Other lines">
 
68
                                <separator colspan="4" string="Overhead"/>
 
69
                                <field name="overhead_type" colspan="2" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
70
                                <field name="overhead_percentage" colspan="2" attrs="{'invisible': [('overhead_type', '=', 'amount')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
71
                                <field name="budget_allocated_overhead" colspan="2" attrs="{'invisible': ['|', ('overhead_type', '!=', 'amount'), ('reporting_type', '=', 'project')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
72
                                <field name="budget_project_overhead" colspan="2" attrs="{'invisible': ['|', ('overhead_type', '!=', 'amount'), ('reporting_type', '=', 'allocated')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
73
                                <field name="allocated_overhead" colspan="2" attrs="{'invisible': ['|', ('overhead_type', '!=', 'amount'), ('reporting_type', '=', 'project')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
74
                                <field name="project_overhead" colspan="2" attrs="{'invisible': ['|', ('overhead_type', '!=', 'amount'), ('reporting_type', '=', 'allocated')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
75
                                <separator colspan="4" string="Lump sum"/>
 
76
                                <field name="budget_allocated_lump_sum" colspan="2" attrs="{'invisible': [('reporting_type', '=', 'project')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
77
                                <field name="budget_project_lump_sum" colspan="2" attrs="{'invisible': [('reporting_type', '=', 'allocated')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
78
                                <field name="allocated_lump_sum" colspan="2" attrs="{'invisible': [('reporting_type', '=', 'project')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
79
                                <field name="project_lump_sum" colspan="2" attrs="{'invisible': [('reporting_type', '=', 'allocated')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
80
                                <separator colspan="4" string="Consumption"/>
 
81
                                <field name="budget_allocated_consumption" colspan="2" attrs="{'invisible': [('reporting_type', '=', 'project')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
82
                                <field name="budget_project_consumption" colspan="2" attrs="{'invisible': [('reporting_type', '=', 'allocated')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
83
                                <field name="allocated_consumption" colspan="2" attrs="{'invisible': [('reporting_type', '=', 'project')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
84
                                <field name="project_consumption" colspan="2" attrs="{'invisible': [('reporting_type', '=', 'allocated')], 'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
 
85
                            </page>
102
86
                            <page string="Comments">
103
87
                                   <field name="notes" nolabel="1" attrs="{'readonly': [('state', 'in', ('soft_closed', 'hard_closed'))]}"/>
104
88
                            </page>
184
168
                                        <field name="line_type" invisible="1"/>
185
169
                                    </tree>
186
170
                                    <form string="Reporting lines">
187
 
                                        <group colspan="4" col="4">
 
171
                                        <group colspan="4" col="6">
188
172
                                            <field name="code" colspan="2"/>
189
173
                                            <field name="name" colspan="2"/>
190
 
                                        </group>
191
 
                                        <group colspan="4" col="4">
192
174
                                            <field name="parent_id" colspan="2"
193
175
                                                   domain="[('format_id', '=', parent.format_id), ('line_type', '=', 'view')]"/>
194
 
                                            <field name="line_type" colspan="2"/>
195
 
                                        </group>
196
 
                                        <group colspan="4" col="4" attrs="{'invisible': [('line_type', '!=', 'overhead')]}">
197
 
                                            <field name="overhead_type" colspan="2" attrs="{'required': [('line_type', '=', 'overhead')]}"/>
198
 
                                            <field name="overhead_percentage" colspan="2" attrs="{'required': [('line_type', '=', 'overhead')]}"/>
199
 
                                        </group>
 
176
                                        </group>
 
177
                                        <field name="line_type"/>
200
178
                                        <field name="account_ids" colspan="4" string="Expense accounts"
201
179
                                               domain="[('type', '!=', 'view'), ('user_type_code', '=', 'expense')]"
202
180
                                               attrs="{'invisible': [('line_type', '=', 'view')]}"/>
203
181
                                    </form>
204
182
                                </field>
205
183
                            </page>
 
184
                            <page string="Other lines">
 
185
                                <separator colspan="4" string="Overhead"/>
 
186
                                <field name="overhead_type" colspan="2"/>
 
187
                                <field name="overhead_percentage" colspan="2" attrs="{'invisible': [('overhead_type', '=', 'amount')]}"/>
 
188
                            </page>
206
189
                        </notebook>
207
190
                    </form>
208
191
                </field>
328
311
                    <field eval="'ir.actions.act_window,%d'%action_open_analytic_lines_button" name="value"/>
329
312
                    <field eval="True" name="object"/>
330
313
                </record>
331
 
            
332
 
            <record id="act_financing_contract_allocated_expense_report" model="ir.actions.server">
333
 
                <field name="name">Allocated Expenses Report</field>
334
 
                <field name="model_id" ref="model_financing_contract_contract"/>
335
 
                <field name="state">code</field>
336
 
                <field name="code">action = obj.menu_allocated_expense_report(context=context)</field>
337
 
            </record>
338
 
 
339
 
            <record id="ir_financing_contract_allocated_expense_report" model="ir.values">
340
 
                <field eval="'client_action_multi'" name="key2"/>
341
 
                <field eval="'financing.contract.contract'" name="model"/>
342
 
                <field name="name">Allocated Expenses Report</field>
343
 
                <field eval="'ir.actions.server,%d'%act_financing_contract_allocated_expense_report" name="value"/>
344
 
                <field eval="True" name="object"/>
345
 
            </record>
346
 
            
347
 
            <record id="act_financing_contract_project_expense_report" model="ir.actions.server">
348
 
                <field name="name">Project Expenses Report</field>
349
 
                <field name="model_id" ref="model_financing_contract_contract"/>
350
 
                <field name="state">code</field>
351
 
                <field name="code">action = obj.menu_project_expense_report(context=context)</field>
352
 
            </record>
353
 
 
354
 
            <record id="ir_financing_contract_project_expense_report" model="ir.values">
355
 
                <field eval="'client_action_multi'" name="key2"/>
356
 
                <field eval="'financing.contract.contract'" name="model"/>
357
 
                <field name="name">Project Expenses Report</field>
358
 
                <field eval="'ir.actions.server,%d'%act_financing_contract_project_expense_report" name="value"/>
359
 
                <field eval="True" name="object"/>
360
 
            </record>
361
314
                    
362
315
       </data>
363
 
</openerp> 
 
316
</openerp> 
 
 
b'\\ No newline at end of file'