parameters: (self, cr=None, user=None, context=None, su=None)
return_statement: return Environment(cr, uid, context, su)
docstring: Return an environment based on ``self`` with modified parameters.
  
              :param cr: optional database cursor to change the current cursor
              :param user: optional user/user id to change the current user
              :param context: optional context dictionary to change the current context
              :param su: optional boolean to change the superuser mode
              :type context: dict
              :type user: int or :class:`~odoo.addons.base.models.res_users`
              :type su: bool
docstring_summary: Return an environment based on ``self`` with modified parameters.
docstring_tokens: Return an environment based on self with modified parameters .
function: def __call__(self, cr=None, user=None, context=None, su=None):
          """ Return an environment based on ``self`` with modified parameters.
  
              :param cr: optional database cursor to change the current cursor
              :param user: optional user/user id to change the current user
              :param context: optional context dictionary to change the current context
              :param su: optional boolean to change the superuser mode
              :type context: dict
              :type user: int or :class:`~odoo.addons.base.models.res_users`
              :type su: bool
          """
          cr = self.cr if cr is None else cr
          uid = self.uid if user is None else int(user)
          context = self.context if context is None else context
          su = (user is None and self.su) if su is None else su
          return Environment(cr, uid, context, su)
function_tokens: def __call__ ( self , cr = None , user = None , context = None , su = None ) : cr = self . cr if cr is None else cr uid = self . uid if user is None else int ( user ) context = self . context if context is None else context su = ( user is None and self . su ) if su is None else su return Environment ( cr , uid , context , su )