From 83236d0341a5af88c698df432127fb5b54897f67 Mon Sep 17 00:00:00 2001 From: Guillem Barba Date: Fri, 16 Jan 2015 11:38:23 +0100 Subject: [PATCH] Fix account_42b.. patch to apply in updated code --- account_42b9acc4c201.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/account_42b9acc4c201.patch b/account_42b9acc4c201.patch index 3ca45d5..d33e80e 100644 --- a/account_42b9acc4c201.patch +++ b/account_42b9acc4c201.patch @@ -168,10 +168,10 @@ diff -r d57626d6cf3e -r 42b9acc4c201 move.py amounts = {} move2draft_lines = {} for sub_move_ids in grouped_slice([m.id for m in moves]): -@@ -324,7 +334,7 @@ +@@ -326,7 +326,7 @@ + if not isinstance(amount, Decimal): amount = Decimal(amount) - draft_lines = MoveLine.browse( - list(move2draft_lines.get(move.id, []))) + draft_lines = MoveLine.browse(move2draft_lines.get(move.id, [])) - if not company.currency.is_zero(amount): + if not move.company.currency.is_zero(amount): draft_moves.append(move.id)