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" />
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"/>
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"/>
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', '<>', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)"/>
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', '<>', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)"/>
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', '<>', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)" select="1"/>
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)"/>
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', '<>', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)" select="1"/>
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)"/>