Skip to content

Commit f777b31

Browse files
author
Chirag Dodiya (OpenERP)
committedJan 7, 2014
[IMP]set default_use_timesheets true in analytic user function
bzr revid: [email protected]
1 parent 92c7e40 commit f777b31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎addons/analytic_user_function/analytic_user_function_view.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form"/>
6767
<field name="arch" type="xml">
6868
<xpath expr="//field[@name='timesheet_ids']/tree/field[@name='account_id']" position="replace">
69-
<field name="account_id" domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)"/>
69+
<field name="account_id" domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)" context="{'default_use_timesheets': 1}"/>
7070
</xpath>
7171
</field>
7272
</record>
@@ -79,7 +79,7 @@
7979
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form"/>
8080
<field name="arch" type="xml">
8181
<xpath expr="//field[@name='timesheet_ids']/form/field[@name='account_id']" position="replace">
82-
<field name="account_id" domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)"/>
82+
<field name="account_id" domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" on_change="on_change_account_id(account_id, user_id, unit_amount)" context="{'default_use_timesheets': 1}"/>
8383
</xpath>
8484
</field>
8585
</record>

0 commit comments

Comments
 (0)
Please sign in to comment.