← Back to team overview

openerp-dev-web team mailing list archive

lp:~openerp-dev/openobject-server/trunk-opw-partner_lang_size-ach into lp:openobject-server

 

Anup(OpenERP) has proposed merging lp:~openerp-dev/openobject-server/trunk-opw-partner_lang_size-ach into lp:openobject-server.

Requested reviews:
  Jay Vora (OpenERP) (jvo-openerp)
  Olivier Dony (OpenERP) (odo)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-opw-partner_lang_size-ach/+merge/52413

Hello,

   It's not possible to save languages that are having code with larger size(>5). This fixes the issue. 

Thanks. 
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-opw-partner_lang_size-ach/+merge/52413
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-server/trunk-opw-partner_lang_size-ach.
=== modified file 'openerp/addons/base/res/partner/partner.py'
--- openerp/addons/base/res/partner/partner.py	2011-01-17 15:17:57 +0000
+++ openerp/addons/base/res/partner/partner.py	2011-03-07 13:47:56 +0000
@@ -116,7 +116,7 @@
         'parent_id': fields.many2one('res.partner','Parent Partner'),
         'child_ids': fields.one2many('res.partner', 'parent_id', 'Partner Ref.'),
         'ref': fields.char('Reference', size=64, select=1),
-        'lang': fields.selection(_lang_get, 'Language', size=5, help="If the selected language is loaded in the system, all documents related to this partner will be printed in this language. If not, it will be english."),
+        'lang': fields.selection(_lang_get, 'Language', help="If the selected language is loaded in the system, all documents related to this partner will be printed in this language. If not, it will be english."),
         'user_id': fields.many2one('res.users', 'Salesman', help='The internal user that is in charge of communicating with this partner if any.'),
         'vat': fields.char('VAT',size=32 ,help="Value Added Tax number. Check the box if the partner is subjected to the VAT. Used by the VAT legal statement."),
         'bank_ids': fields.one2many('res.partner.bank', 'partner_id', 'Banks'),


Follow ups