-
- Downloads
[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.
Loading
Please register or sign in to comment