[FIX] hr_timesheet_sheet: client side error while creating new timesheet line
authorPSO(OpenERP) <>
Mon, 1 Nov 2010 12:24:37 +0000 (17:54 +0530)
committerMustufa Rangwala <mra@mra-laptop>
Mon, 1 Nov 2010 12:24:37 +0000 (17:54 +0530)
lp bug: https://launchpad.net/bugs/664955 fixed

bzr revid: mra@mra-laptop-20101101122437-kkq2wqe3sebb8ebu

addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml

index 69a7374..644db3a 100644 (file)
@@ -53,6 +53,7 @@
                         <field name="department_id" groups="base.group_extended"/>
                         <newline/>
                         <field name="employee_id"/>
+                        <field name="user_id" invisible="1"/>
                         <field name="date_from"/>
                         <field name="date_to"/>
                     </group>
@@ -67,7 +68,7 @@
                                 <button icon="terp-gtk-go-back-rtl" name="date_next" string="" type="object"/>
                             </group>
 
-                            <field colspan="3" context="name=date_current,user_id=user_id" height="100" name="attendances_ids" nolabel="1">
+                            <field colspan="3" context="{'name':date_current,'user_id':user_id}" height="100" name="attendances_ids" nolabel="1">
                                 <tree string="Attendances" editable="bottom">
                                     <field name="name"/>
                                     <field name="action"/>
@@ -80,7 +81,7 @@
                             </group>
                             <field name="state_attendance"/>
                             <field name="total_attendance_day" widget="float_time"/>
-                            <field colspan="4" context="date=date_current,user_id=user_id" domain="[('name','=',date_current)]" name="timesheet_ids" nolabel="1">
+                            <field colspan="4" context="{'date':date_current,'user_id':user_id}" domain="[('name','=',date_current)]" name="timesheet_ids" nolabel="1">
                                 <tree editable="top" string="Timesheet">
                                     <field invisible="1" name="date"/>
                                     <field domain="[('type','=','normal'), ('state', '&lt;&gt;', 'close')]" name="account_id" on_change="on_change_account_id(account_id)"/>