Skip to content

Commit

Permalink
Merge pull request #169 from omar7r/8.0
Browse files Browse the repository at this point in the history
l10n_es_aeat_mod349: Se corrige un problema al calcular las rectificativas
  • Loading branch information
pedrobaeza committed May 5, 2015
2 parents c44c71f + d1a27fe commit e8c83c7
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 e8c83c7

Please sign in to comment.