[FIX] Horrible Performance computing sale_order_id in invoice

Merged Reviewer Intergaláctico requested to merge 11.0-FIX_ComputeSaleOrderId into 11.0-stage

Merge request reports