@api.multi
    def _set_transaction_authorized(self):
        """Move the transaction to the authorized state(e.g. Authorize)."""
        if any(trans.state != "draft" for trans in self):
            raise ValidationError(