summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorcod-odoo <cod@openerp.com>2014-06-25 17:40:27 +0530
committerThibault Delavallée <tde@openerp.com>2014-09-10 13:23:08 +0200
commitb42fcb7575092d9e354accc3295e878256f325b5 (patch)
treed1c372a20d763eba5dc86bcd5d042976d819cc65 /addons/analytic_user_function/analytic_user_function_view.xml
parent2791ea06a911324d13539ef9694001a07ae28b18 (diff)
[IMP] hr_timesheet, project: various usability-related improvements
hr_timesheet: merged use_timesheets and invoice_on_timesheets fields on account.analytic.account that basically tells the same thing (project using timesheets). Propagated this change in the various views using it. project: various improvements in views to ease the user experience.
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
-rw-r--r--addons/analytic_user_function/analytic_user_function_view.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/analytic_user_function/analytic_user_function_view.xml b/addons/analytic_user_function/analytic_user_function_view.xml
index 51e020b3f81..96caee37b1b 100644
--- a/addons/analytic_user_function/analytic_user_function_view.xml
+++ b/addons/analytic_user_function/analytic_user_function_view.xml
@@ -66,7 +66,7 @@
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='timesheet_ids']/tree/field[@name='account_id']" position="replace">
- <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}"/>
+ <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_invoice_on_timesheets': 1}"/>
</xpath>
</field>
</record>
@@ -79,7 +79,7 @@
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='timesheet_ids']/form/field[@name='account_id']" position="replace">
- <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}"/>
+ <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_invoice_on_timesheets': 1}"/>
</xpath>
</field>
</record>