Merge lp:~scigghia/openobject-italia/riba_v7_scigghia into lp:~openobject-italia-core-devs/openobject-italia/adding_riba_v7

Proposed by Andrea Cometa
Status: Merged
Merge reported by: Andrea Cometa
Merged at revision: not available
Proposed branch: lp:~scigghia/openobject-italia/riba_v7_scigghia
Merge into: lp:~openobject-italia-core-devs/openobject-italia/adding_riba_v7
Diff against target: 21 lines (+3/-1)
1 file modified
l10n_it_ricevute_bancarie/wizard/riba_file_export.py (+3/-1)
To merge this branch: bzr merge lp:~scigghia/openobject-italia/riba_v7_scigghia
Reviewer Review Type Date Requested Status
Davide Corio (community) Abstain
andrea_cg (community) Approve
giudalo (community) Approve
Francesco Apruzzese (community) Approve
Andrea Cometa (community) Approve
Review via email: mp+207409@code.launchpad.net

Description of the change

fix contenente controllo sulla presenza banca partner, con relativo messaggio di errore

To post a comment you must log in.
Revision history for this message
Andrea Cometa (scigghia) wrote :

testato

review: Approve
Revision history for this message
giudalo (g-dalo) wrote :

adesso non sono + convinto

review: Approve
Revision history for this message
Francesco Apruzzese (opencode) wrote :

Approvo il commento scritto sopra

Revision history for this message
Andrea Cometa (scigghia) wrote :

ho aggiunto anche un controllo sulla lunghezza della città della banca, il tracciato riporta posizione da 46 a 70 (comune e sigla prov.)
non c'era controllo, ora viene troncata la stringa

Revision history for this message
Francesco Apruzzese (opencode) wrote :

Good Job, Community! Good Job!

review: Approve
Revision history for this message
giudalo (g-dalo) wrote :

Bene

review: Approve
Revision history for this message
andrea_cg (a-gallina) wrote :

Bravo!

review: Approve
Revision history for this message
Davide Corio (enlightx-deactivatedaccount) wrote :

Mi astengo nel senso che in questo modulo ci sarebbero talmente tante cose da sistemare che sarebbe inutile controllare questo MP :-)

Per me quindi potete procedere, anche all'inclusione del modulo in openobject-italia/7.0

review: Abstain
Revision history for this message
Andrea Cometa (scigghia) wrote :

ok allora faccio un resubmit e lo propongo su openobject-italia

Revision history for this message
Andrea Cometa (scigghia) wrote :
Revision history for this message
Andrea Cometa (scigghia) wrote :

come non detto, torno qui a chiedere il merge

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_it_ricevute_bancarie/wizard/riba_file_export.py'
2--- l10n_it_ricevute_bancarie/wizard/riba_file_export.py 2013-12-16 15:22:58 +0000
3+++ l10n_it_ricevute_bancarie/wizard/riba_file_export.py 2014-02-20 15:19:44 +0000
4@@ -179,7 +179,7 @@
5 raise orm.except_orm('Error', _('No IBAN specified for ') + line.partner_id.name)
6 debit_abi = debit_bank.iban[5:10]
7 debit_cab = debit_bank.iban[10:15]
8- debitor_city = debitor_address.city or ''
9+ debitor_city = debitor_address.city and debitor_address.city.ljust(23)[0:23] or ''
10 debitor_province = debitor_address.province.code or ''
11 if not line.due_date: # ??? VERIFICARE
12 due_date = '000000'
13@@ -188,6 +188,8 @@
14
15 if not line.partner_id.vat and not line.partner_id.fiscalcode:
16 raise orm.except_orm('Error', _('No VAT or Fiscal code specified for ') + line.partner_id.name)
17+ if not (debit_bank.bank and debit_bank.bank.name or debit_bank.bank_name):
18+ raise orm.except_orm('Error', _('No debit_bank specified for ') + line.partner_id.name)
19 Riba = [
20 line.sequence,
21 due_date,

Subscribers

People subscribed via source and target branches

to all changes: