← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 716402] Re: hr_timesheet_sheet record gives TypeError: 'bool' object is unsubscriptable error while open from Users'managers login

 

Hello Pritesh,

I have tested your scenario at my end.
But all are working as expected.
I have attached a video for your reference so please check it.
And notify me where you face the problem.

Thanks.

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

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/716402

Title:
  hr_timesheet_sheet record gives  TypeError: 'bool' object is
  unsubscriptable error while open from Users'managers login

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  Hello

              In hr_timesheet_sheet module when any employee encode
  his/her timesheet. now for timesheet approve when hr_user's manager
  check and try to open that timesheet record from list view.

  
  Following errors throws 

  RRR ('2011-02-10', 11)
  [2011-02-10 17:39:18,406][hr_6] ERROR:web-services:Uncaught exception
  Traceback (most recent call last):
    File "/home/cgs/workspace/openerp-6.0/server-6.0/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/cgs/workspace/openerp-6.0/server-6.0/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/cgs/workspace/openerp-6.0/server-6.0/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/cgs/workspace/openerp-6.0/server-6.0/bin/osv/orm.py", line 2921, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/home/cgs/workspace/openerp-6.0/server-6.0/bin/osv/orm.py", line 3041, in _read_flat
      res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
    File "/home/cgs/workspace/openerp-6.0/server-6.0/bin/addons/hr_timesheet_sheet/hr_timesheet_sheet.py", line 42, in get
      for rec in obj.read(cr, user, ids, ['date_current', 'user_id'], context=context)])
  TypeError: 'bool' object is unsubscriptable
  TERP CALLING object execute ('hr_6', 10, 'ram', 'maintenance.contract', 'status'

  Thanking you
  pritesh modi





References