(self, cr=None, user=None, context=None, su=None)
return Environment(cr, uid, context, su)
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
Return an environment based on ``self`` with modified parameters.
Return an environment based on self with modified parameters .
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)
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 )