Compute invoice remaining quantity crashes with invoice line without invoice
The `invoice` field on invoice line is not required so it can be empty (for example with the `purchase_invoice_line_standalone` module). So we should do like in other method, test if the invoice is filled before accessing it.
issue