← Back to team overview

openerp-india team mailing list archive

[Bug 1097271] Re: UnboundLocalError: local variable 'user_id' referenced before assignment

 

** Attachment added: "timesheet.png"
   https://bugs.launchpad.net/openobject-addons/+bug/1097271/+attachment/3477939/+files/timesheet.png

** Changed in: openobject-addons
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)

** Summary changed:

- UnboundLocalError: local variable 'user_id' referenced before assignment
+ [Trunk/7.0]UnboundLocalError: local variable 'user_id' referenced before assignment

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1097271

Title:
  [Trunk/7.0]UnboundLocalError: local variable 'user_id' referenced
  before assignment

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Go to "Human Resources/Time Tracking/My Current Timesheet", 
  try to change the employee, you will get following traceback:

  File "/home/odoo/runbot/static/openerp-dev-trunk-1453/server/openerp/addons/hr_timesheet_sheet/hr_timesheet_sheet.py", line 224, in onchange_employee_id
      return {'value': {'department_id': department_id, 'user_id': user_id,}}
  UnboundLocalError: local variable 'user_id' referenced before assignment

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1097271/+subscriptions