fix create invoices from sale order

Merged Agustin Bordon requested to merge T5460 into 17.0-stage

Merge request reports