code: def exec_workflow(self, model, record_id, signal):
          
          if tools.v(self.version)[0] >= 11:
              raise DeprecationWarning(
                  u"Workflows have been removed in Odoo >= 11.0")
          self._check_logged_user()
          # Execute the workflow query
          args_to_send = [self.env.db, self.env.uid, self._password,
                          model, signal, record_id]
          data = self.json(
              '/jsonrpc',
              {'service': 'object',
               'method': 'exec_workflow',
               'args': args_to_send})
          return data.get('result')
docs: Execute the workflow `signal` on
          the instance having the ID `record_id` of `model`.
  
          *Python 2:*
  
          :raise: :class:`odoorpc.error.RPCError`
          :raise: :class:`odoorpc.error.InternalError` (if not logged)
          :raise: `urllib2.URLError` (connection error)
  
          *Python 3:*
  
          :raise: :class:`odoorpc.error.RPCError`
          :raise: :class:`odoorpc.error.InternalError` (if not logged)
          :raise: `urllib.error.URLError` (connection error)