749
766
torec += map(lambda x: x.id, move.reconcile_id.line_ids)
751
768
if abs(move.reconcile_amount-move.amount)<0.0001:
754
770
#There should only be one write-off account!
755
771
for entry in move.reconcile_id.line_new_ids:
756
772
writeoff_acc_id = entry.account_id.id
759
774
account_move_line_obj.reconcile(cr, uid, torec, 'statement', writeoff_acc_id=writeoff_acc_id, writeoff_period_id=st.period_id.id, writeoff_journal_id=st.journal_id.id, context=context)
761
776
account_move_line_obj.reconcile_partial(cr, uid, torec, 'statement', context)