From b3e2e699cb321ba9ddc6156f7c7cc832a3a0ca38 Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Wed, 18 Dec 2024 17:57:08 +0100 Subject: [PATCH] vault backup: 2024-12-18 17:57:08 --- Migrate OCA module to 14.0.md | 4 ++-- Migrate OCA module to 15.0.md | 6 +++--- Migrate OCA module to 16.0.md | 2 +- Migrate OCA module to 17.0.md | 2 +- Migrate OCA module to 18.0.md | 3 +++ Odoo - Migrate an OCA module.md | 4 +++- Prozesse Odoo - Modul Migration.md | 27 +++++++++++++++++---------- 7 files changed, 30 insertions(+), 18 deletions(-) create mode 100644 Migrate OCA module to 18.0.md diff --git a/Migrate OCA module to 14.0.md b/Migrate OCA module to 14.0.md index 5b911493..ca99ade5 100644 --- a/Migrate OCA module to 14.0.md +++ b/Migrate OCA module to 14.0.md @@ -7,7 +7,7 @@ tags: See [Migration to version 14.0](https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-14.0#howto) for details. -### Preparation +### Prepare Set configurations: @@ -27,7 +27,7 @@ git submodule add -f -b 14.0 git@github.com:OCA/$REPO.git oca/$REPO cd oca/$REPO ``` -### Migration +### Migrate Create the migration branch. diff --git a/Migrate OCA module to 15.0.md b/Migrate OCA module to 15.0.md index c1c31621..e89840c2 100644 --- a/Migrate OCA module to 15.0.md +++ b/Migrate OCA module to 15.0.md @@ -7,7 +7,7 @@ tags: See [Migration to version 15.0](https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-15.0) for details. -### Preparation +### Prepare Set configurations: @@ -33,7 +33,7 @@ source task source cd oca/$REPO ``` -### Migration +### Migrate Create the migration branch. @@ -57,7 +57,7 @@ git commit -m "[IMP] $MODULE: black, isort, prettier" --no-verify Follow [Tasks to do in the migration](https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-15.0#tasks-to-do-in-the-migration) to update the module. -### Submission +### Submit Finalize the migration: diff --git a/Migrate OCA module to 16.0.md b/Migrate OCA module to 16.0.md index 340b8fa5..d7696883 100644 --- a/Migrate OCA module to 16.0.md +++ b/Migrate OCA module to 16.0.md @@ -60,7 +60,7 @@ git commit -m "[IMP] $MODULE: pre-commit stuff" --no-verify ``` Follow [Tasks to do in the migration](https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0#tasks-to-do-in-the-migration) to update the module. -### Submission +### Submit Finalize the migration. diff --git a/Migrate OCA module to 17.0.md b/Migrate OCA module to 17.0.md index 59e1a6a0..ca3a7f11 100644 --- a/Migrate OCA module to 17.0.md +++ b/Migrate OCA module to 17.0.md @@ -60,7 +60,7 @@ git commit -m "[IMP] $MODULE: pre-commit stuff" --no-verify ``` Follow [Tasks to do in the migration](https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-17.0#tasks-to-do-in-the-migration) to update the module. -### Submission +### Submit Finalize the migration. diff --git a/Migrate OCA module to 18.0.md b/Migrate OCA module to 18.0.md new file mode 100644 index 00000000..05c50c4e --- /dev/null +++ b/Migrate OCA module to 18.0.md @@ -0,0 +1,3 @@ +# Migrate OCA module to 18.0 + +See [Migration to version 18.0](https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-18.0) for details. \ No newline at end of file diff --git a/Odoo - Migrate an OCA module.md b/Odoo - Migrate an OCA module.md index 94b0b934..0185dd29 100644 --- a/Odoo - Migrate an OCA module.md +++ b/Odoo - Migrate an OCA module.md @@ -13,4 +13,6 @@ Guide has been updated to meet the [[Odoo Development Workflow]]. ## [[Migrate OCA module to 16.0]] -## [[Migrate OCA module to 17.0]] \ No newline at end of file +## [[Migrate OCA module to 17.0]] + +## [[Migrate OCA module to 18.0]] \ No newline at end of file diff --git a/Prozesse Odoo - Modul Migration.md b/Prozesse Odoo - Modul Migration.md index c4caf0ea..2a299f5c 100644 --- a/Prozesse Odoo - Modul Migration.md +++ b/Prozesse Odoo - Modul Migration.md @@ -7,30 +7,37 @@ tags: ## Odoo Submodule-Branch initialisieren Arbeitsschritte: + * Navigation in das Submodule `cd addons/$REPO` * Neuer Branch erstellen `git switch --orphan $BRANCH` -* Alle Dateien ausser `README.md` entfernen -* Alle Lint-Dateien kopieren `cp template/$BRANCH/.* addons/$REPO/` -* Änderungen committen `git add .; git commit -m "init $BRANCH branch; git push --set-upstream origin $BRANCH"` -* Submodule auf Odoo Build hinzufügen `git submodule add -f -b 17.0 git@github.com:Mint-System/Odoo-Apps-$REPO.git addons/$REPO` +* Alle Dateien entfernen `rm -rf ./*` +* Template-Dateien kopieren `cp -r ../../templates/$BRANCH/. .` +* Die `README.md` Datei aktualisieren. +* Änderungen committen `git add --all; git commit -m "feat: init $BRANCH"; git push --set-upstream origin $BRANCH"` +* Submodule auf Odoo Build hinzufügen `task git-submodule-add git@github.com:Mint-System/Odoo-Apps-$REPO.git addons/$REPO` * Änderungen auf Odoo Build committen +* Register repo to + ## Odoo Modul migrieren Arbeitsschritte: -* Odoo Branch auschecken `task checkout $BRANCH` + * Navigation in das Submodule-Repo `cd addons/$REPO` -* Auschecken Modul von vorhergehender Version `git checkout $OLD_BRANCH $MODULE` -* Modul linten und anpassen `task lint-module addons/$REPO/$MODULE` +* Auschecken Modul von vorhergehender Version `git checkout $SOURCE_VERSION $MODULE` +* Modul-Code aktuallisieren mit `task upgrade-module addons/$REPO/$MODULE $SOURCE_VERSION` +* Modul-Version in `__manifest__.py` aktualisieren * Modul installieren und testen `task init-module addons/$REPO/$MODULE` * Test-Instruktionen erstellen (siehe [[Odoo Module Test Instructions]]) * README aktualisieren `task update-readme addons/$REPO/README.md` -* Migration committen `cd addons/$REPO; git add .; git commit -m "migration $MODULE"` -* Pull-Request erstellen und Review beantragen -* Wenn PR gemerged ist das Submodule-Repo deployen +* Modul linten und anpassen `task lint` +* Migration committen `git add --all; git commit -m "feat: migrate $MODULE"` +* Pull-Request erstellen und Review beantragen `gh pr create` +* Wenn PR gemerged ist, das Submodule-Repo deployen ## Mint System Fork für OCA-Repo erstellen Arbeitsshritte: + * Go to the repo and create a fork * Navigate into the local repo`cd oca/sale-workflow * Add the fork as remote `git remote add mint-system git@github.com:Mint-System/sale-workflow.git`