Amit Dodiya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-client/6.0-bug-851775-ado into 
lp:openobject-client/6.0.

Requested reviews:
  Raphael Collet (OpenERP) (rco-openerp)
Related bugs:
  Bug #851775 in OpenERP GTK Client: "project issue - can't assign to user"
  https://bugs.launchpad.net/openobject-client/+bug/851775

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client/6.0-bug-851775-ado/+merge/76187

Hello,

"[FIX]: ValueError: u'0.00' does not represent a valid integer value while 
saving the project issue form"

Steps to reproduce:
 - Install project_issue
 - Create a new issue and close the form
 - Open the issue and try to assign it to an user. Save

GTK client says:

Traceback (most recent call last):
  File 
"/home/elbati/workspace/openerp/openerp6/client/bin/widget/view/form_gtk/spinbutton.py",
 line 54, in format_input
    value = user_locale_format.str2int(text)
  File 
"/home/elbati/workspace/openerp/openerp6/client/bin/tools/user_locale_format.py",
 line 204, in str2int
    return str2float(string, int)
  File 
"/home/elbati/workspace/openerp/openerp6/client/bin/tools/user_locale_format.py",
 line 226, in str2float
    raise ValueError("%r does not represent a valid %s value" % (string,type))
ValueError: u'0.00' does not represent a valid integer value


Thanks,
Amit
-- 
https://code.launchpad.net/~openerp-dev/openobject-client/6.0-bug-851775-ado/+merge/76187
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client/6.0-bug-851775-ado.
=== modified file 'bin/widget/view/form_gtk/spinbutton.py'
--- bin/widget/view/form_gtk/spinbutton.py	2011-08-18 11:01:28 +0000
+++ bin/widget/view/form_gtk/spinbutton.py	2011-09-20 10:49:23 +0000
@@ -51,7 +51,7 @@
     def format_input(self, spin, new_value_pointer):
         text = spin.get_text()
         if text:
-            value = user_locale_format.str2int(text)
+            value = user_locale_format.str2float(text)
             value_location = ctypes.c_double.from_address(hash(new_value_pointer))
             value_location.value = float(value)
             return True

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

Reply via email to