~jfb-tempo-consulting/unifield-addons/ref_addons_jfb

« back to all changes in this revision

Viewing changes to analytic_user_function/analytic_user_function_view.xml

  • Committer: jf
  • Date: 2014-03-07 14:20:55 UTC
  • mfrom: (4613.1.1 unifield-addons)
  • Revision ID: jfb@tempo-consulting.fr-20140307142055-zhlz6btmpxohr5i8
[MERGE] lp:~unifield-team/unifield-addons/ref_addons

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" ?>
2
 
<openerp>
3
 
    <data>
4
 
 
5
 
        <!-- analytic_user_funct_grid views -->
6
 
        <record model="ir.ui.view" id="analytic_user_funct_grid_tree">
7
 
            <field name="name">analytic_user_funct_grid.tree</field>
8
 
            <field name="model">analytic_user_funct_grid</field>
9
 
            <field name="type">tree</field>
10
 
            <field name="arch" type="xml">
11
 
                <tree string="User's Product for this Analytic Account" editable="bottom">
12
 
                    <field name="user_id" required="1"/>
13
 
                    <field name="product_id" required="1" />
14
 
                </tree>
15
 
            </field>
16
 
        </record>
17
 
 
18
 
        <record model="ir.ui.view" id="analytic_user_funct_grid_form">
19
 
            <field name="name">analytic_user_funct_grid.form</field>
20
 
            <field name="model">analytic_user_funct_grid</field>
21
 
            <field name="type">form</field>
22
 
            <field name="arch" type="xml">
23
 
                <form string="User's Product for this Analytic Account">
24
 
                    <field name="user_id" required="1"/>
25
 
                    <field name="product_id" required="1"/>
26
 
                </form>
27
 
            </field>
28
 
        </record>
29
 
 
30
 
        <!-- account.analytic.account inherited view -->
31
 
        <record model="ir.ui.view" id="view_account_analytic_account_form_inherit">
32
 
            <field name="name">account.analytic.account.form</field>
33
 
            <field name="model">account.analytic.account</field>
34
 
            <field name="type">form</field>
35
 
            <field name="inherit_id" ref="account.view_account_analytic_account_form"/>
36
 
            <field name="arch" type="xml">
37
 
                <xpath expr="/form/notebook/page" position="after">
38
 
                    <page string="Users/Products Rel.">
39
 
                        <field name="user_product_ids" colspan="4" nolabel="1"/>
40
 
                    </page>
41
 
                </xpath>
42
 
            </field>
43
 
        </record>
44
 
 
45
 
        <!-- hr_timesheet_sheet.sheet inherited view -->
46
 
        <record model="ir.ui.view" id="hr_timesheet_sheet_form_inherit">
47
 
            <field name="name">hr.timesheet.sheet.form.tree</field>
48
 
            <field name="model">hr_timesheet_sheet.sheet</field>
49
 
            <field name="type">form</field>
50
 
            <field name="priority" eval="18"/>
51
 
            <field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form"/>
52
 
            <field name="arch" type="xml">
53
 
                <xpath expr="/form/notebook/page/field[@name='timesheet_ids']/tree/field[@name='account_id']" position="replace">
54
 
                    <field name="account_id" domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)"/>
55
 
                </xpath>
56
 
            </field>
57
 
        </record>
58
 
        
59
 
        <!-- hr_timesheet_sheet.sheet inherited view -->
60
 
        <record model="ir.ui.view" id="hr_timesheet_sheet_form_inherit1">
61
 
            <field name="name">hr.timesheet.sheet.form.form</field>
62
 
            <field name="model">hr_timesheet_sheet.sheet</field>
63
 
            <field name="type">form</field>
64
 
            <field name="priority" eval="19"/>
65
 
            <field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form"/>
66
 
            <field name="arch" type="xml">
67
 
                <xpath expr="/form/notebook/page/field[@name='timesheet_ids']/form/field[@name='account_id']" position="replace">
68
 
                    <field name="account_id" domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)"/>
69
 
                </xpath>
70
 
            </field>
71
 
        </record>
72
 
 
73
 
        <!-- hr.analytic.timesheet inherited views -->
74
 
        <record model="ir.ui.view" id="hr_timesheet_line_form_inherit">
75
 
            <field name="name">hr.analytic.timesheet.form</field>
76
 
            <field name="model">hr.analytic.timesheet</field>
77
 
            <field name="type">form</field>
78
 
            <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
79
 
            <field name="arch" type="xml">
80
 
                <xpath expr="/form/notebook/page[@string='Information']/group/field[@name='account_id']" position="replace">
81
 
                    <field name="account_id" domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)" select="1"/>
82
 
                </xpath>
83
 
            </field>
84
 
        </record>
85
 
 
86
 
        <record model="ir.ui.view" id="hr_timesheet_line_form_inherit_2">
87
 
            <field name="name">hr.analytic.timesheet.form</field>
88
 
            <field name="model">hr.analytic.timesheet</field>
89
 
            <field name="type">form</field>
90
 
            <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
91
 
            <field name="arch" type="xml">
92
 
                <xpath expr="/form/group/field[@name='user_id']" position="replace">
93
 
                    <field name="user_id" select="1" required="1" on_change="on_change_user_id(user_id, account_id, unit_amount)"/>
94
 
                </xpath>
95
 
            </field>
96
 
        </record>
97
 
 
98
 
        <record model="ir.ui.view" id="hr_timesheet_line_tree_inherit">
99
 
            <field name="name">hr.analytic.timesheet.tree</field>
100
 
            <field name="model">hr.analytic.timesheet</field>
101
 
            <field name="type">tree</field>
102
 
            <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
103
 
            <field name="arch" type="xml">
104
 
                <xpath expr="/tree/field[@name='account_id']" position="replace">
105
 
                    <field name="account_id" domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)" select="1"/>
106
 
                </xpath>
107
 
            </field>
108
 
        </record>
109
 
 
110
 
        <record model="ir.ui.view" id="hr_timesheet_line_tree_inherit_2">
111
 
            <field name="name">hr.analytic.timesheet.tree</field>
112
 
            <field name="model">hr.analytic.timesheet</field>
113
 
            <field name="type">tree</field>
114
 
            <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
115
 
            <field name="arch" type="xml">
116
 
                <xpath expr="/tree/field[@name='user_id']" position="replace">
117
 
                    <field name="user_id" select="1" required="1" on_change="on_change_user_id(user_id, account_id, unit_amount)"/>
118
 
                </xpath>
119
 
            </field>
120
 
        </record>
121
 
 
122
 
    </data>
123
 
</openerp>