Save moves before reconciling the lines
The previous organization of the code made it less efficient to save the move before reconciling the lines which should the logical order.
This commit is contained in:
1 parent
ab020a78e8
commit
a2662386c3
1 file changed
+2
-2
@@ -479,6 +479,8 @@ class Move(ModelSQL, ModelView):
|
||||
move.post_date = Date.today()
|
||||
move.post_number = move.period.post_move_sequence_used.get()
|
||||
|
||||
cls.save(moves)
|
||||
|
||||
def keyfunc(line):
|
||||
return line.party, line.account
|
||||
to_reconcile = Line.browse(sorted(
|
||||
@@ -488,8 +490,6 @@ class Move(ModelSQL, ModelView):
|
||||
if to_reconcile:
|
||||
Line.reconcile(*to_reconcile)
|
||||
|
||||
cls.save(moves)
|
||||
|
||||
|
||||
class Reconciliation(ModelSQL, ModelView):
|
||||
'Account Move Reconciliation Lines'
|
||||
|
||||
Reference in new issue
Block a user