'Raise a error with custom message, asking user to configure company settings'

@api.model
def _company_warning(self, translated_msg):

    raise exceptions.RedirectWarning(translated_msg, self.env.ref('base.action_res_company_form').id, _('Go    to    company    configuration    screen'))
