4 <!-- budget form and tree view from account module *********************************** -->
5 <record id="action_account_budget_post_tree" model="ir.actions.act_window">
6 <field name="name">Budgets</field>
7 <field name="res_model">account.budget.post</field>
8 <field name="view_type">tree</field>
10 <menuitem action="action_account_budget_post_tree" id="menu_action_account_budget_post_tree" parent="account.menu_finance_generic_reporting" sequence="6"/>
16 <record id="view_budget_post_tree" model="ir.ui.view">
17 <field name="name">account.budget.post.tree</field>
18 <field name="model">account.budget.post</field>
19 <field name="type">tree</field>
20 <field name="arch" type="xml">
21 <tree string="Budgetary Position">
22 <field name="sequence"/>
25 <field name="company_id" groups="base.group_multi_company"/>
29 <record id="view_budget_post_dotation_form" model="ir.ui.view">
30 <field name="name">account.budget.post.dotation.form</field>
31 <field name="model">account.budget.post.dotation</field>
32 <field name="type">form</field>
33 <field name="arch" type="xml">
34 <form string="Budget Dotation">
35 <field name="period_id"/>
36 <field name="amount"/>
37 <field name="tot_planned" />
41 <record id="view_budget_post_dotation_tree" model="ir.ui.view">
42 <field name="name">account.budget.post.dotation.tree</field>
43 <field name="model">account.budget.post.dotation</field>
44 <field name="type">tree</field>
45 <field name="arch" type="xml">
46 <tree string="Budget Dotations">
47 <field name="period_id"/>
48 <field name="amount"/>
49 <field name="tot_planned" />
54 <record id="open_budget_post_form" model="ir.actions.act_window">
55 <field name="name">Budgetary Positions</field>
56 <field name="res_model">account.budget.post</field>
57 <field name="view_type">form</field>
58 <field name="view_id" ref="view_budget_post_tree"/>
60 <menuitem id="next_id_31" name="Budgets" parent="account.menu_finance" sequence="5"/>
61 <menuitem action="open_budget_post_form" id="menu_budget_post_form" parent="next_id_31" sequence="2"/>
64 <record model="ir.ui.view" id="view_budget_post_form">
65 <field name="name">account.budget.post.form.inherit</field>
66 <field name="model">account.budget.post</field>
67 <field name="type">form</field>
68 <field name="arch" type="xml">
69 <form string="Budgetary Position">
70 <field name="name" select="1"/>
71 <field name="code" select="1"/>
72 <field name="company_id" groups="base.group_multi_company"/>
73 <field name="sequence" select="2"/>
74 <notebook colspan="4">
75 <page string="Accounts">
76 <field name="account_ids" colspan="4" nolabel="1"/>
78 <page string="Dotations">
79 <button string="Spread" name="%(wizard_budget_spread)d" type="action" icon="gtk-fullscreen"/>
80 <field name="dotation_ids" colspan="4" nolabel="1"/>
83 <page string="Budget Lines">
84 <field name="crossovered_budget_line" widget="one2many_list" colspan="4" nolabel="1" mode="graph,tree">
85 <graph type="bar" string="Lines">
86 <field name="analytic_account_id" />
87 <!--<field name="general_budget_id" operator="+" />-->
88 <field name="planned_amount" operator="+"/>
89 <field group="True" name="general_budget_id"/>
91 <tree string="Budget Lines" editable="top">
92 <field name="crossovered_budget_id"/>
93 <field name="analytic_account_id"/>
94 <field name="date_from"/>
95 <field name="date_to"/>
96 <field name="paid_date"/>
97 <field name="planned_amount"/>
98 <field name="practical_amount" select="1"/>
99 <field name="theoritical_amount"/>
100 <field name="percentage"/>
102 <form string="Budget Lines">
103 <field name="crossovered_budget_id"/>
104 <field name="analytic_account_id"/>
105 <field name="date_from"/>
106 <field name="date_to"/>
107 <field name="paid_date"/>
108 <field name="planned_amount"/>
109 <field name="practical_amount" select="1"/>
110 <field name="theoritical_amount"/>
111 <field name="percentage"/>
120 <record model="ir.ui.view" id="crossovered_budget_view_form">
121 <field name="name">crossovered.budget.view.form</field>
122 <field name="model">crossovered.budget</field>
123 <field name="type">form</field>
124 <field name="arch" type="xml">
125 <form string="Budget">
126 <field name="name" colspan="1" select="1"/>
127 <field name="code" colspan="1" select="1" />
128 <field name="creating_user_id" />
129 <field name="validating_user_id" readonly="True"/>
130 <field name="date_from" select="2"/>
131 <field name="date_to" select="2"/>
132 <field name="crossovered_budget_line" colspan="4" nolabel="1">
133 <tree string="Budget Lines">
134 <field name="analytic_account_id"/>
135 <field name="general_budget_id"/>
136 <field name="date_from"/>
137 <field name="date_to"/>
138 <field name="paid_date"/>
139 <field name="planned_amount"/>
140 <field name="practical_amount"/>
141 <field name="theoritical_amount"/>
142 <field name="percentage"/>
144 <form string="Budget Lines">
145 <field name="analytic_account_id" select="1"/>
146 <field name="general_budget_id" select="1"/>
147 <field name="date_from"/>
148 <field name="date_to"/>
149 <field name="paid_date" select="1"/>
150 <field name="planned_amount" select="1"/>
153 <field name="state" select="1"/>
154 <group col="4" colspan="2">
155 <button string="Confirm" name="confirm" states="draft" type="workflow" icon="gtk-apply" />
156 <button string="Validate" name="validate" states="confirm" type="workflow" icon="gtk-ok"/>
157 <button string="Done" name="done" states="validate" type="workflow" icon="gtk-jump-to" />
158 <button string="Cancel" name="cancel" states="confirm,validate" type="workflow" icon="gtk-cancel"/>
159 <!--<button string="Set to Draft" name="action_set_to_draft" states="cancel" type="object"/>-->
166 <record model="ir.ui.view" id="crossovered_budget_view_tree">
167 <field name="name">crossovered.budget.view.tree</field>
168 <field name="model">crossovered.budget</field>
169 <field name="type">tree</field>
170 <field name="arch" type="xml">
171 <tree string="Budget">
172 <field name="name" colspan="1" select="1"/>
173 <field name="code" colspan="1" select="1" />
174 <field name="state"/>
175 <field name="date_from"/>
176 <field name="date_to"/>
181 <record model="ir.actions.act_window" id="act_crossovered_budget_view">
182 <field name="name">Budget</field>
183 <field name="res_model">crossovered.budget</field>
184 <field name="view_type">form</field>
185 <field name="view_mode">tree,form</field>
186 <field name="view_id" ref="crossovered_budget_view_tree"/>
188 <menuitem parent="next_id_31"
189 id="menu_act_crossovered_budget_view"
190 action="act_crossovered_budget_view" sequence="1" />
192 <record model="ir.ui.view" id="view_crossovered_budget_line_tree">
193 <field name="name">crossovered.budget.line.tree</field>
194 <field name="model">crossovered.budget.lines</field>
195 <field name="type">tree</field>
196 <field name="arch" type="xml">
197 <tree string="Budget Lines">
198 <field name="analytic_account_id"/>
199 <field name="general_budget_id"/>
200 <field name="date_from"/>
201 <field name="date_to"/>
202 <field name="paid_date"/>
203 <field name="planned_amount"/>
204 <field name="practical_amount" select="1"/>
205 <field name="theoritical_amount"/>
206 <field name="percentage"/>
210 <record model="ir.ui.view" id="view_crossovered_budget_line_form">
211 <field name="name">crossovered.budget.line.form</field>
212 <field name="model">crossovered.budget.lines</field>
213 <field name="type">form</field>
214 <field name="arch" type="xml">
215 <form string="Budget Lines">
216 <field name="crossovered_budget_id"/>
217 <field name="analytic_account_id" select="1"/>
218 <field name="general_budget_id" select="1"/>
219 <field name="date_from"/>
220 <field name="date_to"/>
221 <field name="paid_date" select="1"/>
222 <field name="planned_amount" select="1"/>
223 <field name="practical_amount" select="1"/>
224 <field name="theoritical_amount"/>
225 <field name="percentage"/>
230 <record model="ir.actions.act_window" id="act_crossovered_budget_lines_view">
231 <field name="name">Budget Lines</field>
232 <field name="res_model">crossovered.budget.lines</field>
233 <field name="view_type">form</field>
234 <field name="view_mode">tree,form</field>
235 <field name="view_id" ref="view_crossovered_budget_line_tree"/>
238 <menuitem parent="menu_action_account_budget_post_tree"
239 id="menu_act_crossovered_budget_lines_view"
240 action="act_crossovered_budget_lines_view" />
243 <act_window name="Budget Lines"
244 domain="[('analytic_account_id', '=', active_id)]"
245 res_model="crossovered.budget.lines"
246 src_model="account.analytic.account"
247 id="act_account_analytic_account_cb_lines"/>
250 <record model="ir.ui.view" id="view_account_analytic_account_form_inherit_cci">
251 <field name="name">account.analytic.account.form.inherot.cci</field>
252 <field name="type">form</field>
253 <field name="model">account.analytic.account</field>
254 <field name="inherit_id" ref="account.view_account_analytic_account_form"/>
255 <field name="arch" type="xml">
256 <notebook position="inside">
257 <page string="Budget Lines">
258 <field name="crossovered_budget_line" widget="one2many_list" colspan="4" nolabel="1" mode="tree,graph">
259 <tree string="Budget Lines" editable="top">
260 <field name="crossovered_budget_id"/>
261 <field name="general_budget_id"/>
262 <field name="date_from"/>
263 <field name="date_to"/>
264 <field name="paid_date"/>
265 <field name="planned_amount"/>
267 <form string="Budget Lines">
268 <field name="crossovered_budget_id"/>
269 <field name="general_budget_id"/>
270 <field name="date_from"/>
271 <field name="date_to"/>
272 <field name="paid_date"/>
273 <field name="planned_amount"/>
275 <graph type="bar" string="Lines">
276 <field name="general_budget_id" />
277 <!--<field name="analytic_account_id" operator="+"/>-->
278 <field name="planned_amount" operator="+"/>
279 <field group="True" name="analytic_account_id"/>
286 <!-- moved from account module -->
289 id="account_analytic_budget_print"
290 string="Print Budget"
291 model="account.analytic.budget.post"
292 name="account.analytic.budget.print"
293 rml="account/project/report/account_analytic_budget_report.rml"
297 <!--Menu for project management-->
298 <menuitem icon="terp-project" id="base.menu_main_pm" name="Project Management"/>
299 <menuitem id="base.menu_pm_invoicing" name="Invoicing" parent="base.menu_main_pm" sequence="7"/>
300 <menuitem id="menu_pm_budget" name="Budgets" parent="base.menu_pm_invoicing"/>
301 <menuitem action="open_budget_post_form" id="menu_pm_budget_post_form" parent="menu_pm_budget"/>
302 <menuitem parent="menu_pm_budget"
303 id="menu_act_pm_crossovered_budget_view"
304 action="act_crossovered_budget_view" />