parameters: (self, default=None, records=None, company=None, doc_names=None)
return_statement: return res
docstring: Override to set alias of tasks to their project if any.
docstring_summary: Override to set alias of tasks to their project if any.
docstring_tokens: Override to set alias of tasks to their project if any .
function: def _notify_get_reply_to(self, default=None, records=None, company=None, doc_names=None):
          """ Override to set alias of tasks to their project if any. """
          aliases = self.sudo().mapped('project_id')._notify_get_reply_to(default=default, records=None, company=company, doc_names=None)
          res = {task.id: aliases.get(task.project_id.id) for task in self}
          leftover = self.filtered(lambda rec: not rec.project_id)
          if leftover:
              res.update(super(Task, leftover)._notify_get_reply_to(default=default, records=None, company=company, doc_names=doc_names))
          return res
function_tokens: def _notify_get_reply_to ( self , default = None , records = None , company = None , doc_names = None ) : aliases = self . sudo ( ) . mapped ( 'project_id' ) . _notify_get_reply_to ( default = default , records = None , company = company , doc_names = None ) res = { task . id : aliases . get ( task . project_id . id ) for task in self } leftover = self . filtered ( lambda rec : not rec . project_id ) if leftover : res . update ( super ( Task , leftover ) . _notify_get_reply_to ( default = default , records = None , company = company , doc_names = doc_names ) ) return res