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</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(user_id, account_id, unit_amount)"/>
59
<!-- hr.analytic.timesheet inherited views -->
60
<record model="ir.ui.view" id="hr_timesheet_line_form_inherit">
61
<field name="name">hr.analytic.timesheet.form</field>
62
<field name="model">hr.analytic.timesheet</field>
63
<field name="type">form</field>
64
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
65
<field name="arch" type="xml">
66
<xpath expr="/form/field[@name='account_id']" position="replace">
67
<field name="account_id" domain="[('type','=','normal'),('state', '<>', 'close')]" on_change="on_change_account_id(user_id, account_id, unit_amount)" select="1"/>
72
<record model="ir.ui.view" id="hr_timesheet_line_form_inherit_2">
73
<field name="name">hr.analytic.timesheet.form</field>
74
<field name="model">hr.analytic.timesheet</field>
75
<field name="type">form</field>
76
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
77
<field name="arch" type="xml">
78
<xpath expr="/form/field[@name='user_id']" position="replace">
79
<field name="user_id" select="1" required="1" on_change="on_change_user_id(user_id, account_id, unit_amount)"/>
84
<record model="ir.ui.view" id="hr_timesheet_line_tree_inherit">
85
<field name="name">hr.analytic.timesheet.tree</field>
86
<field name="model">hr.analytic.timesheet</field>
87
<field name="type">tree</field>
88
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
89
<field name="arch" type="xml">
90
<xpath expr="/tree/field[@name='account_id']" position="replace">
91
<field name="account_id" domain="[('type','=','normal'),('state', '<>', 'close')]" on_change="on_change_account_id(user_id, account_id, unit_amount)" select="1"/>
96
<record model="ir.ui.view" id="hr_timesheet_line_tree_inherit_2">
97
<field name="name">hr.analytic.timesheet.tree</field>
98
<field name="model">hr.analytic.timesheet</field>
99
<field name="type">tree</field>
100
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
101
<field name="arch" type="xml">
102
<xpath expr="/tree/field[@name='user_id']" position="replace">
103
<field name="user_id" select="1" required="1" on_change="on_change_user_id(user_id, account_id, unit_amount)"/>