5 <menuitem name="Budgets" id="menu_action_account_budget_post_tree" parent="account.menu_finance_generic_reporting" sequence="6"/>
10 <record id="view_budget_post_search" model="ir.ui.view">
11 <field name="name">account.budget.post.search</field>
12 <field name="model">account.budget.post</field>
13 <field name="arch" type="xml">
14 <search string="Budgetary Position">
15 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Budgetary Position"/>
16 <field name="company_id" groups="base.group_multi_company"/>
21 <record id="view_budget_post_tree" model="ir.ui.view">
22 <field name="name">account.budget.post.tree</field>
23 <field name="model">account.budget.post</field>
24 <field name="arch" type="xml">
25 <tree string="Budgetary Position">
28 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
33 <record id="open_budget_post_form" model="ir.actions.act_window">
34 <field name="name">Budgetary Positions</field>
35 <field name="res_model">account.budget.post</field>
36 <field name="view_type">form</field>
37 <field name="view_id" ref="view_budget_post_tree"/>
38 <field name="search_view_id" ref="view_budget_post_search"/>
40 <menuitem id="next_id_31" name="Budgets" parent="account.menu_finance" sequence="6"/>
41 <menuitem id="next_id_pos" name="Budgets" parent="account.menu_finance_configuration" sequence="50"/>
42 <menuitem action="open_budget_post_form" id="menu_budget_post_form" parent="next_id_pos" sequence="20"/>
45 <record model="ir.ui.view" id="view_budget_post_form">
46 <field name="name">account.budget.post.form.inherit</field>
47 <field name="model">account.budget.post</field>
48 <field name="arch" type="xml">
49 <form string="Budgetary Position" version="7.0">
53 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
56 <page string="Accounts">
57 <field name="account_ids"/>
59 <page string="Budget Lines">
60 <field name="crossovered_budget_line" widget="one2many_list" mode="tree">
61 <tree string="Budget Lines" editable="top">
62 <field name="crossovered_budget_id"/>
63 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
64 <field name="date_from"/>
65 <field name="date_to"/>
66 <field name="paid_date"/>
67 <field name="planned_amount" sum="Planned Amount"/>
68 <field name="practical_amount" sum="Practical Amount" />
69 <field name="theoritical_amount" sum="Theoretical Amount"/>
70 <field name="percentage"/>
72 <form string="Budget Lines" version="7.0">
74 <field name="crossovered_budget_id"/>
75 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
76 <field name="date_from"/>
77 <field name="date_to"/>
78 <field name="paid_date"/>
79 <field name="planned_amount"/>
80 <field name="practical_amount"/>
81 <field name="theoritical_amount"/>
82 <field name="percentage"/>
92 <record model="ir.ui.view" id="crossovered_budget_view_form">
93 <field name="name">crossovered.budget.view.form</field>
94 <field name="model">crossovered.budget</field>
95 <field name="arch" type="xml">
96 <form string="Budget" version="7.0">
98 <button string="Confirm" name="confirm" states="draft" type="workflow" class="oe_highlight"/>
99 <button string="Approve" name="validate" states="confirm" type="workflow" class="oe_highlight"/>
100 <button string="Done" name="done" states="validate" type="workflow" class="oe_highlight"/>
101 <button name="draft" states="cancel" string="Reset to Draft" type="workflow" />
102 <button string="Cancel Budget" name="cancel" states="confirm,validate" type="workflow"/>
103 <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/>
105 <sheet string="Budget">
106 <div class="oe_title">
107 <label for="name" class="oe_edit_only"/>
109 <field name="name" attrs="{'readonly':[('state','!=','draft')]}"/>
114 <field name="creating_user_id" attrs="{'readonly':[('state','!=','draft')]}" context="{'default_groups_ref': ['base.group_user', 'account.group_account_user']}"/>
115 <field name="validating_user_id" readonly="True" attrs="{'readonly':[('state','!=','draft')]}"/>
118 <field name="code" attrs="{'readonly':[('state','!=','draft')]}"/>
119 <label for="date_from" string="Duration"/>
121 <field name="date_from" class="oe_inline" attrs="{'readonly':[('state','!=','draft')]}"/> -
122 <field name="date_to" class="oe_inline" attrs="{'readonly':[('state','!=','draft')]}" nolabel="1"/>
124 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
128 <page string="Budget Lines">
129 <field name="crossovered_budget_line" colspan="4" nolabel="1" attrs="{'readonly':[('state','!=','draft')]}">
130 <tree string="Budget Lines">
131 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
132 <field name="general_budget_id"/>
133 <field name="date_from"/>
134 <field name="date_to"/>
135 <field name="paid_date"/>
136 <field name="planned_amount" sum="Planned Amount"/>
137 <field name="practical_amount" sum="Practical Amount"/>
138 <field name="theoritical_amount" sum="Theoretical Amount"/>
139 <field name="percentage"/>
141 <form string="Budget Lines" version="7.0">
144 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
145 <field name="general_budget_id"/>
146 <field name="planned_amount"/>
149 <label for="date_from" string="Duration"/>
151 <field name="date_from" class="oe_inline"/> -
152 <field name="date_to" class="oe_inline"/>
154 <field name="paid_date"/>
155 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
167 <record model="ir.ui.view" id="crossovered_budget_view_tree">
168 <field name="name">crossovered.budget.view.tree</field>
169 <field name="model">crossovered.budget</field>
170 <field name="arch" type="xml">
171 <tree colors="blue:state == 'draft';gray:state in ('done','cancel');black:state in ('confirm','validate')" string="Budget">
172 <field name="name" colspan="1"/>
173 <field name="code" colspan="1"/>
174 <field name="date_from"/>
175 <field name="date_to"/>
176 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
177 <field name="creating_user_id"/>
178 <field name="state"/>
183 <record id="view_crossovered_budget_search" model="ir.ui.view">
184 <field name="name">crossovered.budget.search</field>
185 <field name="model">crossovered.budget</field>
186 <field name="arch" type="xml">
187 <search string="Budget">
188 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Budget"/>
189 <field name="date_from"/>
190 <field name="date_to"/>
191 <filter string="Draft" icon="terp-document-new" domain="[('state','=','draft')]" help="Draft Budgets"/>
192 <filter string="To Approve" icon="terp-camera_test" domain="[('state','=','confirm')]" help="To Approve Budgets" />
193 <field name="state"/>
198 <record model="ir.actions.act_window" id="act_crossovered_budget_view">
199 <field name="name">Budgets</field>
200 <field name="res_model">crossovered.budget</field>
201 <field name="view_type">form</field>
202 <field name="view_mode">tree,form</field>
203 <field name="view_id" ref="crossovered_budget_view_tree"/>
204 <field name="search_view_id" ref="view_crossovered_budget_search"/>
205 <field name="help" type="html">
207 A budget is a forecast of your company's income and/or expenses
208 expected for a period in the future. A budget is defined on some
209 financial accounts and/or analytic accounts (that may represent
210 projects, departments, categories of products, etc.)
212 By keeping track of where your money goes, you may be less
213 likely to overspend, and more likely to meet your financial
214 goals. Forecast a budget by detailing the expected revenue per
215 analytic account and monitor its evolution based on the actuals
216 realised during that period.
220 <menuitem parent="next_id_31"
221 id="menu_act_crossovered_budget_view"
222 action="act_crossovered_budget_view" sequence="1" />
224 <record id="view_crossovered_budget_line_search" model="ir.ui.view">
225 <field name="name">account.budget.line.search</field>
226 <field name="model">crossovered.budget.lines</field>
227 <field name="arch" type="xml">
228 <search string="Budget Lines">
229 <field name="analytic_account_id"/>
234 <record model="ir.ui.view" id="view_crossovered_budget_line_tree">
235 <field name="name">crossovered.budget.line.tree</field>
236 <field name="model">crossovered.budget.lines</field>
237 <field name="arch" type="xml">
238 <tree string="Budget Lines">
239 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
240 <field name="crossovered_budget_id" invisible="1"/>
241 <field name="general_budget_id"/>
242 <field name="date_from"/>
243 <field name="date_to"/>
244 <field name="paid_date"/>
245 <field name="planned_amount"/>
246 <field name="practical_amount"/>
247 <field name="theoritical_amount"/>
248 <field name="percentage"/>
252 <record model="ir.ui.view" id="view_crossovered_budget_line_form">
253 <field name="name">crossovered.budget.line.form</field>
254 <field name="model">crossovered.budget.lines</field>
255 <field name="arch" type="xml">
256 <form string="Budget Lines" version="7.0">
259 <field name="crossovered_budget_id"/>
260 <field name="analytic_account_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"/>
266 <field name="practical_amount"/>
267 <field name="theoritical_amount"/>
268 <field name="percentage"/>
269 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
276 <record model="ir.actions.act_window" id="act_crossovered_budget_lines_view">
277 <field name="name">Budget Lines</field>
278 <field name="res_model">crossovered.budget.lines</field>
279 <field name="view_type">form</field>
280 <field name="view_mode">tree,form</field>
281 <field name="view_id" ref="view_crossovered_budget_line_tree"/>
284 <menuitem parent="menu_action_account_budget_post_tree"
285 id="menu_act_crossovered_budget_lines_view"
286 action="act_crossovered_budget_lines_view" />
289 <act_window name="Budget Lines"
290 context="{'search_default_analytic_account_id': [active_id], 'default_analytic_account_id': active_id}"
291 res_model="crossovered.budget.lines"
292 src_model="account.analytic.account"
293 id="act_account_analytic_account_cb_lines"/>
296 <record model="ir.ui.view" id="view_account_analytic_account_form_inherit_budget">
297 <field name="name">account.analytic.account.form.inherit.budget</field>
298 <field name="model">account.analytic.account</field>
299 <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
300 <field name="arch" type="xml">
301 <notebook position="inside">
302 <page string="Budget Lines" groups="account.group_account_user">
303 <field name="crossovered_budget_line" widget="one2many_list" colspan="4" nolabel="1" mode="tree">
304 <tree string="Budget Lines" editable="top">
305 <field name="crossovered_budget_id"/>
306 <field name="general_budget_id"/>
307 <field name="date_from"/>
308 <field name="date_to"/>
309 <field name="paid_date"/>
310 <field name="planned_amount"/>
311 <field name="practical_amount" sum="Practical Amount"/>
312 <field name="theoritical_amount" sum="Theoritical Amount"/>
313 <field name="percentage"/>
315 <form string="Budget Lines">
316 <field name="crossovered_budget_id"/>
317 <field name="general_budget_id"/>
318 <field name="date_from"/>
319 <field name="date_to"/>
320 <field name="paid_date"/>
321 <field name="planned_amount"/>