Browse Source

[FIX] Skip empty lines if any - reconcile_partial throws an error when passing empty list

pull/27/head
Andrius Preimantas 9 years ago
parent
commit
082b3fe53c
  1. 2
      pos_trade_receivable_autoreconcile/model/point_of_sale.py

2
pos_trade_receivable_autoreconcile/model/point_of_sale.py

@ -45,6 +45,8 @@ class POSOrder(models.Model):
grouped_data[key].append(line.id)
break
for key, value in grouped_data.iteritems():
if not value:
continue
self.pool.get('account.move.line').reconcile_partial(
cr, SUPERUSER_ID, value)

Loading…
Cancel
Save