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