[FIX] Deduplicate partner by using a sub-query

Merged Gabriel Davini requested to merge 7.0-purchase_invoices into 7.0-stage

Merge request reports