def _move_modules(self, temp_repo, destination):
        """Move odoo modules from the temp directory to the destination.

        This step is different from a standard repository. In the base code
        of Odoo, the modules are contained in a addons folder at the root
        of the git repository. However, when deploying the application,
        those modules are placed inside the folder odoo/addons.

        1- Move modules from addons/ to odoo/addons/ (with the base module).
        2- Move the whole odoo folder to the destination location.
        """
        tmp_addons = os.path.join(temp_repo, 'addons')
        tmp_odoo_addons = os.path.join(temp_repo, 'odoo/addons')
        folders = self._get_module_folders(tmp_addons)
        for folder in folders:
            force_move(folder, tmp_odoo_addons)

        tmp_odoo = os.path.join(temp_repo, 'odoo')
        force_move(tmp_odoo, destination)
def _move_modules ( self , temp_repo , destination ) : tmp_addons = os . path . join ( temp_repo , 'addons' ) tmp_odoo_addons = os . path . join ( temp_repo , 'odoo/addons' ) folders = self . _get_module_folders ( tmp_addons ) for folder in folders : force_move ( folder , tmp_odoo_addons ) tmp_odoo = os . path . join ( temp_repo , 'odoo' ) force_move ( tmp_odoo , destination )
Move odoo modules from the temp directory to the destination.

        This step is different from a standard repository. In the base code
        of Odoo, the modules are contained in a addons folder at the root
        of the git repository. However, when deploying the application,
        those modules are placed inside the folder odoo/addons.

        1- Move modules from addons/ to odoo/addons/ (with the base module).
        2- Move the whole odoo folder to the destination location.