Compare commits

..

No commits in common. "71aba63b0344f100f80237c57c32d135a3145aac" and "52492302d3a4a8ba0c39fa83342d0020334f16fd" have entirely different histories.

3 changed files with 2 additions and 36 deletions

View file

@ -753,7 +753,7 @@
name="queue.git"
path="odoo12.0/addons/OCA_queue"
remote="ERPLibre_origin_OCA"
revision="erplibre/12.0"
revision="12.0"
groups="addons,odoo12.0"
/>
<project

View file

@ -768,7 +768,6 @@ class TodoUpgrade:
self.write_config()
print("✅ -> Restore database")
already_update_state_1 = False
if not self.dct_progression.get("state_1_update_all"):
print(
@ -786,9 +785,7 @@ class TodoUpgrade:
f"./script/addons/update_addons_all.sh {database_name}",
single_source_odoo=True,
)
if not status:
already_update_state_1 = True
self.dct_progression["state_1_update_all"] = True
self.write_config()
@ -882,7 +879,7 @@ class TodoUpgrade:
print(f"🔷 {msg}")
self.add_comment_progression(msg)
if not self.dct_progression.get("state_2_update_all") and not already_update_state_1:
if not self.dct_progression.get("state_2_update_all"):
status, cmd_executed = self.todo_upgrade_execute(
f"./script/addons/update_addons_all.sh {database_name}",
single_source_odoo=True,

View file

@ -524,28 +524,6 @@ class Update:
status = os.system("./script/install/install_locally_dev.sh")
return status
def apply_extra_modules(self):
"""Add the extra modules (CybroOdoo) to the repo manifest, EVEN when
the base environment is already installed. Records the extra state so
git_merge_repo_manifest includes manifest/git_manifest_extra_odooXX.xml,
then re-generates the local manifest and re-syncs the repos (the Odoo
config is regenerated by the post-install step that follows).
Without this, « --with_extra » on an already-installed env was a no-op:
update_environment() (where the extra state is set) is skipped when the
env is valid, so get_version_extra() stayed False and CybroOdoo was
never cloned nor added to config.conf. Returns the os.system status."""
_logger.info("Applying extra modules (CybroOdoo) to the manifest...")
if _STATE_AVAILABLE:
set_version_installed(
self.new_version_odoo,
extra=True,
python=self.new_version_python,
poetry=self.new_version_poetry,
)
self.execute_log.append("Extra modules (CybroOdoo)")
return os.system("./script/manifest/update_manifest_local_dev.sh")
def install_system(self):
self.execute_log.append(f"System installation")
status = os.system("./script/install/install_dev.sh")
@ -758,15 +736,6 @@ def main():
exit_code = 1
update.print_log()
# --with_extra : appliquer les modules extra (CybroOdoo) MÊME si l'env de
# base est déjà installé (sinon update_environment est sauté -> « Nothing
# to do » et CybroOdoo n'est jamais ajouté au repo ni à config.conf).
# Placé AVANT la régénération de config (post-étape) pour qu'elle le prenne.
if update.config.with_extra and exit_code == 0:
rc = update.apply_extra_modules()
if rc not in (0, True, None):
exit_code = 1
# Étapes post-install : uniquement si l'installation a RÉUSSI (sinon
# .venv.erplibre est absent -> cascade d'erreurs inutiles).
if update.config.install_dev and exit_code == 0: