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