l10n_it_ri_ba - errori in caso di dati mancanti nell'indirizzo

Bug #889541 reported by Lorenzo Battistini
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Italia
Fix Released
Medium
Eliumara Lopez

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'

Related branches

Revision history for this message
Lorenzo Battistini (elbati) wrote :
Changed in openobject-italia:
importance: Undecided → Medium
Changed in openobject-italia:
status: New → Fix Committed
Revision history for this message
Eliumara Lopez (lopez.eliumara) wrote :

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).

Changed in openobject-italia:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.