mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
Fix account_42b.. patch to apply in updated code
This commit is contained in:
parent
1277f65a63
commit
83236d0341
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue