Allow to edit supplier invoices references on non draft state
I make the reference writable depending on invoice type to avoid that the invoice_report_cache is added as depends and thus loaded for each customer invoice in the list (as the reference field is shown there).