=== modified file 'hr_timesheet/hr_timesheet.py' --- hr_timesheet/hr_timesheet.py 2010-08-19 09:38:02 +0000 +++ hr_timesheet/hr_timesheet.py 2010-08-20 06:21:48 +0000 @@ -159,12 +159,14 @@ def on_change_user_id(self, cr, uid, ids, user_id): if not user_id: return {} + context = {'user_id': user_id} return {'value' : { - 'product_id' : self._getEmployeeProduct(cr,user_id, context= {}), - 'product_uom_id' : self._getEmployeeUnit(cr, user_id, context= {}), - 'general_account_id' :self. _getGeneralAccount(cr, user_id, context= {}), - 'journal_id' : self._getAnalyticJournal(cr, user_id, context= {}), + 'product_id' : self._getEmployeeProduct(cr, uid, context), + 'product_uom_id' : self._getEmployeeUnit(cr, uid, context), + 'general_account_id' :self. _getGeneralAccount(cr, uid, context), + 'journal_id' : self._getAnalyticJournal(cr, uid, context), }} + hr_analytic_timesheet()