Hello Yves,

Thanks for that correction.

I am totally agree with you, It's my mistake on commit. On my code I
have directly taken the values from uid (means which user is login in to
system), So it will create error when my task user is different.


Again thank for the correction on this. I just right now changes on branch and 
commit it asap.

Thanks a lot..!

-- 
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/953006

Title:
  project_timesheet: impossible to edit a task work

Status in OpenERP Addons (modules):
  In Progress

Bug description:
  openobject-addons/6.1 revno 6664
  openobject-server/6.1 revno 4099
  openerp-web/6.1 revno 2270

   - Install project_timesheet
   - Create a new project and a new task
   - Using web interface, create a new 'task work' for that task and save the 
task.
   - Edit the task and try to edit the task work, modifying the time spent.

  Get

  2012-03-12 13:18:38,920 23377 ERROR ? openerp.osv.osv: Uncaught exception
  Traceback (most recent call last):
    File "/home/elbati/workspace/openerp/6.1/server/openerp/osv/osv.py", line 
121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/elbati/workspace/openerp/6.1/server/openerp/osv/osv.py", line 
176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/elbati/workspace/openerp/6.1/server/openerp/osv/osv.py", line 
164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File 
"/home/elbati/workspace/openerp/6.1/addons/project_timesheet/project_timesheet.py",
 line 223, in write
      
    File "/home/elbati/workspace/openerp/6.1/addons/project/project.py", line 
1049, in write
      result = super(task,self).write(cr, uid, ids, vals, context=context)
    File "/home/elbati/workspace/openerp/6.1/server/openerp/osv/orm.py", line 
3944, in write
      result += self._columns[field].set(cr, self, id, field, vals[field], 
user, context=rel_context) or []
    File "/home/elbati/workspace/openerp/6.1/server/openerp/osv/fields.py", 
line 575, in set
      obj.write(cr, user, [act[1]], act[2], context=context)
    File 
"/home/elbati/workspace/openerp/6.1/addons/project_timesheet/project_timesheet.py",
 line 125, in write
      context = {}
  KeyError: 'journal_id'

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

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to