Prozesse Odoo - Modul Migration
Odoo Submodule-Branch initialisieren
Arbeitsschritte:
- Navigation in das Submodule
cd addons/$REPO
- Neuer Branch erstellen
git switch --orphan $TARGET_VERSION
- Alle Dateien entfernen
rm -rf ./*
- Template-Dateien kopieren
task template-repo addons/$REPO
- Die
README.md
Datei aktualisieren. - Änderungen committen
git add --all; git commit -m "feat: init $TARGET_VERSION"; git push --set-upstream origin $TARGET_VERSION"
- 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 https://apps.odoo.com/apps/dashboard/repos
Odoo Modul migrieren
Arbeitsschritte:
- In Odoo-Build die neue Odoo Version auschecken
task checkout $TARGET_VERSION
- Navigation in das Submodule-Repo
cd addons/$REPO
- Auschecken Modul von vorhergehender Version
git checkout $SOURCE_VERSION $MODULE
- Modul-Version in
__manifest__.py
aktualisieren - Modul-Code aktuallisieren mit
task upgrade-module addons/$REPO/$MODULE $SOURCE_VERSION
- 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
- Modul linten und anpassen
task lint
- Migration committen
git add --all; git commit -m "feat: migrate $MODULE"
- Optional Pull-Request erstellen:
- Feature branch erstellen
git switch -c mig-$MODULE
- Und mit dem CLI einen PR erstellen
gh pr create
- Wenn PR gemerged ist, das Submodule-Repo deployen
- Feature branch erstellen
- Änderungen pushen
git push
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
- Checkout a customer branch
git switc -c $BRANCH-$PROJECT_CODE
- Push a branch to the remote with
git push mint-system $BRANCH-$PROJECT_CODE