houssine78/addons

unpredictable order when reconciling invoice and a credit note lead to an undesired behavior

Closed this issue · 1 comments

when you reconcile a invoice with a credit note. the iteration order on the account_invoice object is unpredictable. so you can go first on the credit note and when you come a the second iteration on the original invoice the filtering on the state return nothing as the credit note has already been processed and stated to 'paid'

You should remove the filtering on the state on the following line

https://github.com/houssine78/addons/blob/9.0/product_subscription/models/invoice.py#L54

fixed with this commit 98a71e9