Chirag Patel (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-client-web/6.0-opw-510119-cpa into 
lp:openobject-client-web.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-510119-cpa/+merge/95538

Hello,

Fixed translation field set as False when field is blank.

Demo: sale > products > products
1. Edit one product and remove Description, Sale Description and Purchase 
Description value.
2. Save & Edit record.
3. Click on flag img on product name for set translation.

Observed: Description, Sale Description and Purchase Description field is blank 
and it's shows False.
Expected: Description, Sale Description and Purchase Description field should 
be blank.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-510119-cpa/+merge/95538
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client-web/6.0-opw-510119-cpa.
=== modified file 'addons/openerp/controllers/translator.py'
--- addons/openerp/controllers/translator.py	2011-02-01 18:02:11 +0000
+++ addons/openerp/controllers/translator.py	2012-03-02 11:49:18 +0000
@@ -73,7 +73,8 @@
 
                         val = proxy.read([params.id], [name], context)
                         val = val[0] if isinstance(val,list) and len(val) > 0 else None
-
+                        if val[name] == False:
+                            val[name]=""
                         value[lang['code']] = val[name] if isinstance(val,dict) \
                             and name in val else None
 

_______________________________________________
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