Launchpad automatic translations update.
[odoo/odoo.git] / addons / hr_timesheet_sheet / hr_timesheet_sheet_view.xml
old mode 100755 (executable)
new mode 100644 (file)
index 2409b3d..10ea662
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <openerp>
     <data>
-    
+
        <record id="hr_timesheet_sheet_graph" model="ir.ui.view">
          <field name="name">hr.timesheet.sheet.graph</field>
          <field name="model">hr_timesheet_sheet.sheet</field>
         </record>
 
         <act_window
-        context="{'search_default_sheet_id': [active_id]}"
+        context="{'search_default_sheet_id': [active_id], 'default_sheet_id': active_id}"
         id="act_hr_timesheet_sheet_sheet_by_day"
         name="Timesheet by Account"
         res_model="hr_timesheet_sheet.sheet.account"
         src_model="hr_timesheet_sheet.sheet"/>
 
         <act_window
-        context="{'search_default_sheet_id': [active_id]}"
+        context="{'search_default_sheet_id': [active_id], 'default_sheet_id': active_id}"
         id="act_hr_timesheet_sheet_sheet_2_hr_analytic_timesheet"
         name="Timesheet Lines"
         res_model="hr.analytic.timesheet"
 
 
         <act_window
-        context="{'search_default_sheet_id': [active_id]}"
+        context="{'search_default_sheet_id': [active_id], 'default_sheet_id': active_id}"
         id="act_hr_timesheet_sheet_sheet_2_hr_attendance"
         name="Attendances"
         res_model="hr.attendance"
         </record>
   <!-- Timesheet Button on Employee Form -->
   <act_window
-           context="{'search_default_employee_id': [active_id]}"
+           context="{'search_default_employee_id': [active_id], 'default_employee_id': active_id}"
            id="act_hr_employee_2_hr_timesheet" name="Timesheets" res_model="hr_timesheet_sheet.sheet" src_model="hr.employee"/>
 
     </data>