Skip to content

Commit

Permalink
[FIX] l10n_es_aeat_mod349: Se corrige un problema al calcular las fac…
Browse files Browse the repository at this point in the history
…turas rectificativas a declarar.
  • Loading branch information
omar7r committed May 5, 2015
1 parent c44c71f commit d1a27fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion l10n_es_aeat_mod349/models/mod349.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ def _create_349_refund_records(self, refunds, partner, operation_key):
# creates a dictionary key with partner_record id to
# after recover it
key = refund_details.partner_record_id
record[key] = record.get(key, []).append(refund)
if record.get(key, False):
record[key].append(refund)
else:
record[key] = [refund]
break
# recorremos nuestro diccionario y vamos creando registros
for partner_rec in record:
Expand Down

0 comments on commit d1a27fe

Please sign in to comment.