Converting an issue to a task or create a ne task [V6.0 3977-GTK Client]

Bug #684472 reported by B. ZEGHICHE
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 1

Bug Description

Hi

when converting an issue in a task or create a new task. just put '5' in planned hours an save.

the client raises this error

It does not convert it in relevant format '05:00' before saving. (if you press save again after error it works)

perhaps its a GTK-Client bug issue.

Environment Information :
System : Linux-2.6.31-14-generic-i686-with-Ubuntu-9.10-karmic
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
Operating System Release : 2.6.31-14-generic
Operating System Version : #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009
Operating System Architecture : 32bit
Operating System Locale : fr_BE.UTF8
Python Version : 2.6.4
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 596, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 119, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 203, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 193, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/project/project.py", line 348, in onchange_planned
    return {'value':{'remaining_hours': planned - effective}}
TypeError: unsupported operand type(s) for -: 'float' and 'dict'

security vulnerability: yes → no
visibility: private → public
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ujjvala Collins (uco-openerp) wrote :

Hello,

The fix has been committed to lp:~openerp-dev/openobject-addons/trunk-dev-addons1 with revision 4574.

Soon, it will be merged into trunk-addons.

Thanks.

Changed in openobject-addons:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.