L10N_CH: fix compatibility to python2.3 with rjust

bzr revid: ced-8b7903826dae4b9193cdf397b3d5af9a128e5e40
This commit is contained in:
ced 2007-04-17 07:50:11 +00:00
parent e653d75d2c
commit 98f60d06ab
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ def _create_dta(self,cr,uid,data,context):
v['invoice_reference']= i.reference
v['invoice_bvr_num']= i.bvr_ref_num
if v['invoice_bvr_num']:
v['invoice_bvr_num'] = v['invoice_bvr_num'].rjust(27,'0')
v['invoice_bvr_num'] = v['invoice_bvr_num'].replace(' ', '').rjust(27).replace(' ','0')
v['partner_comment']= i.partner_comment