Skip to content
Snippets Groups Projects
Commit ed6a52a5 authored by Damien Bouvy's avatar Damien Bouvy
Browse files

[FIX] sale: no more refund invoices overload

When fetching the invoices linked to a sales order,
the system looked for all refunds which had an 'origin'
field that was the number of an invoice of this SO.

That's nice, except that invoices that are not yet
validated do not have a number, which caused sales
order with an uncofirmed invoices to be 'linked' to
all 'out_invoices' that had no origin (which could
be 1000+ for a substantial db) (basically all out
invoices which had the origin field set to false)

This commit simply extends the domain to exclude
refunds that did not originate explicitly from one
of the SO's invoices.
parent c7337bf3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment