I've got a error when I tried to get a boleto
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Proge OpenERP Addons |
New
|
Undecided
|
Unassigned |
Bug Description
I'm getting a error when I do try to generate a boleto from a invoice.
Steps to reproduce the error:
The user goes on Sales > Sales Order and select a Invoice with a status "Sales Order" ;
The user clicks on View Invoice Button;
The system shows the Invoice;
The user goes on More button and cliks on Gerar Boleto;
- The system show Gerar Boleto wizard;
- The user select a bank from the list and press Gerar Boleto Button;
The system show a error message below:
2014-04-02 02:43:10,304 15600 ERROR localizacao openerp.netsvc: The barcode must have 44 caracteres, found 45
Traceback (most recent call last):
File "/opt/openerp_
result = ExportService.
File "/opt/openerp_
res = fn(db, uid, *params)
File "/opt/openerp_
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp_
return f(self, dbname, *args, **kwargs)
File "/opt/openerp_
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp_
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp_
boleto_file = self.gen_boleto(cr, uid, ids, boleto_ids, context)
File "/opt/openerp_
boleto_
File "/usr/local/
d = self._drawRecib
File "/usr/local/
boletoDados
File "/usr/local/
linha = self.barcode
File "/usr/local/
'The barcode must have 44 caracteres, found %d' % len(num))
BoletoException: The barcode must have 44 caracteres, found 45