Hi Guewen
Regarding the fix you should change the line 10 with :
payment_move_lines = self._get_payment(cr, uid, invoice, context=context)
Note : the _get_payment method will retrieve the correct move_line (the aim is to be able to extend the reconciliation for purchase order too, a real case is for the incoming invoice, prepaid in checkmo before validating the purchase order)
After this change it will be ok for me
« Back to merge proposal
Hi Guewen
Regarding the fix you should change the line 10 with :
payment_move_lines = self._get_ payment( cr, uid, invoice, context=context)
Note : the _get_payment method will retrieve the correct move_line (the aim is to be able to extend the reconciliation for purchase order too, a real case is for the incoming invoice, prepaid in checkmo before validating the purchase order)
After this change it will be ok for me