Dhruti Shastri has proposed merging 
lp:~openerp-dev/openobject-server/7.0-opw-584694-dhs into 
lp:openobject-server/7.0.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/7.0-opw-584694-dhs/+merge/146787

Open this menu Sale>Configuration>Address Book>Localization>Country
create one country GOT ERROR 

OR even when you try to remove the code from Country.

This patch will solve the issue.
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/7.0-opw-584694-dhs/+merge/146787
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/7.0-opw-584694-dhs.
=== modified file 'openerp/addons/base/res/res_country.py'
--- openerp/addons/base/res/res_country.py	2013-01-31 12:10:52 +0000
+++ openerp/addons/base/res/res_country.py	2013-02-06 06:25:26 +0000
@@ -71,13 +71,13 @@
     name_search = location_name_search
 
     def create(self, cursor, user, vals, context=None):
-        if vals.get('code'):
+        if vals.get('code',False):
             vals['code'] = vals['code'].upper()
         return super(Country, self).create(cursor, user, vals,
                 context=context)
 
     def write(self, cursor, user, ids, vals, context=None):
-        if 'code' in vals:
+        if vals.get('code',False):
             vals['code'] = vals['code'].upper()
         return super(Country, self).write(cursor, user, ids, vals,
                 context=context)

_______________________________________________
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