Adesso ho aggiornato il file riba_file_export.py
Con la rev 126 ho risolto il baco che hai segnalato, e con la rev 125 ho 
sistemato altre correzioni nella generazione del file CBI (non si può più fare 
la stampa del campo indirizzo debitor  "vuoto" nella riga 40).

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/889541

Title:
  l10n_it_ri_ba - errori in caso di dati mancanti nell'indirizzo

Status in OpenERP Italia:
  Fix Committed

Bug description:
  Se il partner associato alla company che emette la ri.ba. ha ad
  esempio il campo street vuoto, cliccando su 'export ri.ba.' viene
  generato il seguente errore:

  [2011-11-12 17:10:48,295][test] ERROR:web-services:Uncaught exception
  Traceback (most recent call last):
    File "/home/elbati/workspace/openerp/openerp6/server/bin/osv/osv.py", line 
122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/elbati/workspace/openerp/openerp6/server/bin/osv/osv.py", line 
176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/elbati/workspace/openerp/openerp6/server/bin/osv/osv.py", line 
167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File 
"/home/elbati/workspace/openerp/openerp6/server/bin/addons/l10n_it_ri_ba/wizard/riba_file_export.py",
 line 219, in act_getfile
      out=base64.encodestring(self._creaFile(array_testata, arrayRiba))
    File 
"/home/elbati/workspace/openerp/openerp6/server/bin/addons/l10n_it_ri_ba/wizard/riba_file_export.py",
 line 123, in _creaFile
      accumulatore = accumulatore + self._Record20(intestazione[7], 
intestazione[8], intestazione[9], intestazione[10])
    File 
"/home/elbati/workspace/openerp/openerp6/server/bin/addons/l10n_it_ri_ba/wizard/riba_file_export.py",
 line 95, in _Record20
      return " 20" + str(self._progressivo).rjust(7,'0') + 
self._creditore[0:24] + indirizzo_creditore.ljust(24)[0:24] + 
cap_citta_creditore.ljust(24)[0:24]+ ref_creditore.ljust(24)[0:24]  + " " * 14 
+ "\r\n"
  AttributeError: 'bool' object has no attribute 'ljust'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-italia/+bug/889541/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to