[MERGE] res_partner.lang field size bumped to 32.
authorVo Minh Thu <vmt@openerp.com>
Wed, 19 Oct 2011 15:38:50 +0000 (17:38 +0200)
committerVo Minh Thu <vmt@openerp.com>
Wed, 19 Oct 2011 15:38:50 +0000 (17:38 +0200)
This is needed for instance to accomodate Serbian(Latin).
The size will be used for newly created database as osv.orm does not
handle bumping the size of a selection field on update.

bzr revid: vmt@openerp.com-20111019153850-qk3opgw6oylyuws1

1  2 
bin/addons/base/res/partner/partner.py

@@@ -116,7 -116,7 +116,7 @@@ class res_partner(osv.osv)
          '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."),
++        'lang': fields.selection(_lang_get, 'Language', size=32, 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'),