addons14/project_key/models/project_project.py
def _set_default_project_key(self):
        """
        This method will be called from the post_init hook in order to set
        default values on project.project and
        project.task, so we leave those tables nice and clean after module
        installation.
        :return:
        """
        for project in self.with_context(active_test=False).search(
            [("key", "=", False)]
        ):
            project.key = self.generate_project_key(project.name)
            project.create_sequence()

            for task in project.task_ids:
                task.key = project.get_next_task_key()

        This method will be called from the post_init hook in order to set
        default values on project.project and
        project.task, so we leave those tables nice and clean after module
        installation.
        :return:
        
This method will be called from the post_init hook in order to set
default values on project.project and
project.task, so we leave those tables nice and clean after module
installation.
This method will be called from the post_init hook in order to set default values on project . project and project . task so we leave those tables nice and clean after module installation .
def _set_default_project_key(self):
        for project in self.with_context(active_test=False).search(
            [("key", "=", False)]
        ):
            project.key = self.generate_project_key(project.name)
            project.create_sequence()
            for task in project.task_ids:
                task.key = project.get_next_task_key()
def _set_default_project_key ( self ) : for project in self . with_context ( active_test = False ) . search ( [ ( "key" , "=" , False ) ] ) : project . key = self . generate_project_key ( project . name ) project . create_sequence ( ) for task in project . task_ids : task . key = project . get_next_task_key ( )
This method will be called from the post_init hook in order to set
default values on project.project and
project.task, so we leave those tables nice and clean after module
installation.
This method will be called from the post_init hook in order to set default values on project . project and project . task so we leave those tables nice and clean after module installation .
"""
        This method will be called from the post_init hook in order to set
        default values on project.project and
        project.task, so we leave those tables nice and clean after module
        installation.
        :return:
        """
None
self