summaryrefslogtreecommitdiff
path: root/base_account_budget/views/account_analytic_account_views.xml
diff options
context:
space:
mode:
Diffstat (limited to 'base_account_budget/views/account_analytic_account_views.xml')
-rw-r--r--base_account_budget/views/account_analytic_account_views.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/base_account_budget/views/account_analytic_account_views.xml b/base_account_budget/views/account_analytic_account_views.xml
new file mode 100644
index 0000000..8a0d802
--- /dev/null
+++ b/base_account_budget/views/account_analytic_account_views.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record model="ir.ui.view" id="view_account_analytic_account_form_inherit_budget">
+ <field name="name">account.analytic.account.form.inherit.budget</field>
+ <field name="model">account.analytic.account</field>
+ <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
+ <field name="priority" eval="50"/>
+ <field name="arch" type="xml">
+ <xpath expr="//group[@name='main']" position='after'>
+ <notebook groups="account.group_account_user">
+ <page string="Budget Items">
+ <field name="budget_line" widget="one2many_list" colspan="4" nolabel="1" mode="tree">
+ <tree string="Budget Items" editable="top">
+ <field name="budget_id"/>
+ <field name="general_budget_id"/>
+ <field name="date_from"/>
+ <field name="date_to"/>
+ <field name="paid_date"/>
+ <field name="planned_amount" widget="monetary"/>
+ <field name="practical_amount" sum="Practical Amount" widget="monetary"/>
+ <field name="theoretical_amount" sum="Theoretical Amount" widget="monetary"/>
+ <field name="percentage"/>
+ </tree>
+ <form string="Budget Items">
+ <field name="budget_id"/>
+ <field name="general_budget_id"/>
+ <field name="date_from"/>
+ <field name="date_to"/>
+ <field name="paid_date"/>
+ <field name="planned_amount" widget="monetary"/>
+ </form>
+ </field>
+ </page>
+ </notebook>
+ </xpath>
+ </field>
+ </record>
+</odoo> \ No newline at end of file