summaryrefslogtreecommitdiff
path: root/base_account_budget/views/account_analytic_account_views.xml
blob: 8a0d802fdc2ac6d492fd7d6cb96c0dbdb8bf95de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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>