← Back to team overview

openerp-india team mailing list archive

[Bug 953006] Re: project_timesheet: impossible to edit a task work

 

** Tags added: maintenance

** Also affects: openobject-addons/6.1
   Importance: Undecided
       Status: New

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

** Changed in: openobject-addons/6.1
     Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)

-- 
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):
  Fix Committed
Status in OpenERP Addons 6.1 series:
  New

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


References