'Update form view id of action to open the invoice'

@api.multi
def get_formview_id(self):

    if (self.type in ('in_invoice', 'in_refund')):
        return self.env.ref('account.invoice_supplier_form').id
    else:
        return self.env.ref('account.invoice_form').id
