diff --git a/.github/workflows/aggregate.yml b/.github/workflows/aggregate.yml new file mode 100644 index 000000000000..6a84fd5f89bc --- /dev/null +++ b/.github/workflows/aggregate.yml @@ -0,0 +1,94 @@ +name: Aggregate fork branches + +on: + push: + branches: + - ledoent + - "19.0-fix-*" + workflow_dispatch: + +permissions: + contents: write + +jobs: + aggregate: + runs-on: ubuntu-latest + steps: + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install git-aggregator + run: pip install git-aggregator==4.1 + + - name: Configure git identity (gitaggregate needs this before merging) + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + + - name: Checkout fork (no working tree needed; gitaggregate clones fresh) + uses: actions/checkout@v4 + with: + ref: ledoent + path: fork-meta + fetch-depth: 1 + + - name: Write aggregate config + # gitaggregate clones into ./openupgrade so the lab's repos.yaml layout is reproduced. + # `target ledoent aggregated` is what gets pushed back. + run: | + cat > aggregate.yml <<'YAML' + ./openupgrade: + defaults: + depth: 500 + remotes: + origin: https://github.com/OCA/OpenUpgrade.git + ledoent: https://github.com/ledoent/OpenUpgrade.git + target: ledoent aggregated + merges: + - ledoent ledoent + - ledoent 19.0-fix-user-groups-id-rename + # 19.0-fix-rollup is a conflict-resolved combination of the five + # OCA/OpenUpgrade PRs #5628-5632 (cherry-picked onto origin/19.0 + # in dependency order). Listing them individually here fails + # because #5628 and #5630 both touch hr/19.0.1.1/pre-migration.py + # with non-overlapping additions that gitaggregate's straight + # `git pull --no-rebase` can't auto-merge. When any OCA PR + # changes, rebase the rollup branch. + - ledoent 19.0-fix-rollup + YAML + + - name: Run gitaggregate + run: gitaggregate -c aggregate.yml + + - name: Force-push aggregated + id: push + working-directory: openupgrade + env: + PUSH_TOKEN: ${{ secrets.AGGREGATE_PUSH_TOKEN || secrets.GITHUB_TOKEN }} + run: | + git remote set-url ledoent "https://x-access-token:${PUSH_TOKEN}@github.com/ledoent/OpenUpgrade.git" + git push --force ledoent HEAD:refs/heads/aggregated + sha=$(git rev-parse HEAD) + echo "Aggregated head: $sha" + echo "sha=$sha" >> "$GITHUB_OUTPUT" + + - name: Trigger build-image workflow + # GITHUB_TOKEN-driven branch pushes don't fire downstream workflows + # (loop protection). Use repository_dispatch with a PAT so build-image + # can react. Falls back to no-op if AGGREGATE_PUSH_TOKEN is unset. + env: + GH_TOKEN: ${{ secrets.AGGREGATE_PUSH_TOKEN }} + run: | + if [ -z "$GH_TOKEN" ]; then + echo "AGGREGATE_PUSH_TOKEN not set; skipping repository_dispatch." + echo "Run \`gh workflow run build-image.yml --ref aggregated\` manually." + exit 0 + fi + gh api \ + -X POST \ + "/repos/${{ github.repository }}/dispatches" \ + -f event_type=aggregated-updated \ + -f "client_payload[sha]=${{ steps.push.outputs.sha }}" + echo "Fired repository_dispatch event_type=aggregated-updated" diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml new file mode 100644 index 000000000000..3b684ed68606 --- /dev/null +++ b/.github/workflows/build-image.yml @@ -0,0 +1,58 @@ +name: Build openupgrade image + +# Builds an Odoo 19 image with the aggregated OpenUpgrade tree baked in +# and pushes to the ledoent Zot registry at registry.hz.ledoweb.com. +# +# Auth: basic-auth via the `robot-ci` Zot user. +# Secrets: ZOT_USERNAME (= robot-ci), ZOT_PASSWORD (set on this repo). +# +# Image: registry.hz.ledoweb.com/openupgrade/openupgrade +# Consumed by: openupgrade-lab/docker-compose.yml (odoo-19 service) + +on: + push: + branches: + - aggregated + repository_dispatch: + types: [aggregated-updated] + workflow_dispatch: + +concurrency: + group: build-image-${{ github.ref }} + cancel-in-progress: true + +env: + ZOT_HOST: registry.hz.ledoweb.com + ZOT_IMAGE: registry.hz.ledoweb.com/openupgrade/openupgrade + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + with: + ref: aggregated + fetch-depth: 1 + + - uses: docker/login-action@v3 + with: + registry: ${{ env.ZOT_HOST }} + username: ${{ secrets.ZOT_USERNAME }} + password: ${{ secrets.ZOT_PASSWORD }} + + - uses: docker/setup-buildx-action@v3 + + - name: Build and push (amd64 only — cluster is amd64; M-series uses Rosetta) + uses: docker/build-push-action@v6 + with: + context: . + file: ./Dockerfile.openupgrade + push: true + platforms: linux/amd64 + tags: | + ${{ env.ZOT_IMAGE }}:latest + ${{ env.ZOT_IMAGE }}:${{ github.sha }} + cache-from: type=registry,ref=${{ env.ZOT_IMAGE }}:buildcache + cache-to: type=registry,ref=${{ env.ZOT_IMAGE }}:buildcache,mode=max diff --git a/.github/workflows/documentation-commit.yml b/.github/workflows/documentation-commit.yml index c7d445ee6521..84842b18ecf6 100644 --- a/.github/workflows/documentation-commit.yml +++ b/.github/workflows/documentation-commit.yml @@ -8,10 +8,15 @@ name: Build and commit documentation on: push: + branches: ["19.0"] paths: ["docsource/modules180-190.rst"] jobs: documentation-commit: + # Docs publishing only makes sense on OCA upstream (default branch + # publishes to https://oca.github.io/OpenUpgrade/). Forks don't have + # a `documentation` branch — checkout would fail. Restrict to OCA. + if: ${{ github.repository_owner == 'OCA' }} runs-on: ubuntu-latest steps: - name: Check out OpenUpgrade Documentation diff --git a/.github/workflows/mirror-upstream.yml b/.github/workflows/mirror-upstream.yml new file mode 100644 index 000000000000..7d1819a4dc17 --- /dev/null +++ b/.github/workflows/mirror-upstream.yml @@ -0,0 +1,62 @@ +name: Mirror upstream OCA/OpenUpgrade + +on: + schedule: + - cron: "0 6 * * *" # daily 06:00 UTC + workflow_dispatch: + +permissions: + contents: write + +jobs: + mirror: + runs-on: ubuntu-latest + steps: + - name: Checkout fork + uses: actions/checkout@v4 + with: + ref: ledoent + fetch-depth: 0 + token: ${{ secrets.GIT_PUSH_TOKEN || secrets.GITHUB_TOKEN }} + + - name: Fetch upstream + run: | + git remote add upstream https://github.com/OCA/OpenUpgrade.git + git fetch upstream 19.0 + + - name: Force-push upstream/19.0 to fork's 19.0 + run: | + git push origin "upstream/19.0:refs/heads/19.0" --force-with-lease || \ + git push origin "upstream/19.0:refs/heads/19.0" --force + + - name: Check whether ledoent has drifted from upstream/19.0 + id: drift + run: | + # ledoent should be upstream/19.0 + custom-CI commits. If a merge-base + # comparison shows ledoent missing upstream commits, we need a rebase. + if git merge-base --is-ancestor upstream/19.0 ledoent; then + echo "drift=no" >> "$GITHUB_OUTPUT" + echo "ledoent is up to date with upstream/19.0" + else + echo "drift=yes" >> "$GITHUB_OUTPUT" + behind=$(git rev-list --count ledoent..upstream/19.0) + echo "ledoent is behind upstream/19.0 by $behind commits — rebase needed" + fi + + - name: Open issue if drift detected + if: steps.drift.outputs.drift == 'yes' + uses: actions/github-script@v7 + with: + script: | + const { owner, repo } = context.repo; + const title = 'ledoent branch needs rebase onto upstream/19.0'; + const existing = await github.rest.issues.listForRepo({ + owner, repo, labels: 'mirror-drift', state: 'open' + }); + if (existing.data.length === 0) { + await github.rest.issues.create({ + owner, repo, title, + labels: ['mirror-drift'], + body: 'upstream OCA/OpenUpgrade `19.0` has advanced. Rebase `ledoent` onto it and force-push.\n\n```bash\ngit fetch origin\ngit checkout ledoent\ngit rebase origin/19.0\ngit push -f origin ledoent\n```' + }); + } diff --git a/.github/workflows/test-migration-enriched.yml b/.github/workflows/test-migration-enriched.yml new file mode 100644 index 000000000000..1323b9975f9d --- /dev/null +++ b/.github/workflows/test-migration-enriched.yml @@ -0,0 +1,185 @@ +# Fork-only variant of test-migration.yml that exercises the migration +# against the enriched 18.0 seed (OCA's 18.0.psql + populate-factory +# volume + curated edge cases from scripts/seed-edge-cases.py in the +# lab repo). Built and uploaded by scripts/build-fork-seed.sh. +# +# Catches migration regressions on edge-case data that OCA's vanilla +# demo seed doesn't contain — VATEX_ legacy codes, crm.stage with +# team_id set, archived parents, etc. +# +# Runs in parallel with `test-migration.yml` so a green build means +# both the upstream baseline AND our enriched seed migrate cleanly. + +name: Test OpenUpgrade migration (enriched seed) + +on: + push: + branches: + - "19.0" + - "19.0-ocabot-*" + - "19.0-mig-*" + - "19.0-fix-*" + - "aggregated" + - "ledoent" + +jobs: + test: + # Fork-only: OCA upstream doesn't have our enriched seed. + if: ${{ github.repository_owner == 'ledoent' }} + runs-on: ubuntu-22.04 + env: + DB: "openupgrade" + DB_HOST: "localhost" + DB_PASSWORD: "odoo" + DB_PORT: 5432 + DB_USERNAME: "odoo" + # Enriched seed lives on ledoent/OpenUpgrade `databases` release. + DOWNLOADS: https://github.com/ledoent/OpenUpgrade/releases/download/databases + SEED_NAME: 18.0-ledoent.psql + ODOO: "./odoo/odoo-bin" + PGHOST: "localhost" + PGPASSWORD: "odoo" + PGUSER: "odoo" + OPENUPGRADE_USE_DEMO: "yes" + services: + postgres: + # PG16 to match the lab's local postgres used by build-fork-seed.sh. + # PG14 in OCA's test-migration.yml can't restore custom-format dumps + # written by PG16 (file header version 1.15 vs max-supported 1.14). + image: postgres:16 + env: + POSTGRES_USER: odoo + POSTGRES_PASSWORD: odoo + POSTGRES_DB: odoo + ports: + - 5432:5432 + steps: + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Sleep for 10 seconds + run: sleep 10s + - name: Install postgresql-client-16 + run: | + # Ubuntu 22.04 ships pg_restore v14 — can't read PG16 custom-format + # dumps from the lab's local postgres:16. Install matching client. + sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' + wget -q -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - + sudo apt-get update -qq + sudo apt-get install -y postgresql-client-16 + echo "/usr/lib/postgresql/16/bin" >> $GITHUB_PATH + - name: DB Creation + run: createdb $DB + - name: DB Restore (enriched seed) + run: | + wget -q -O- $DOWNLOADS/$SEED_NAME | pg_restore -d $DB --no-owner + psql $DB -c "UPDATE ir_module_module SET demo=False" + - name: Check out Odoo + uses: actions/checkout@v4 + with: + repository: odoo/odoo + ref: "19.0" + fetch-depth: 1 + path: odoo + - name: Check out previous Odoo + uses: actions/checkout@v4 + with: + repository: odoo/odoo + ref: "18.0" + fetch-depth: 1 + path: odoo-old + - name: Check out OpenUpgrade + uses: actions/checkout@v4 + with: + path: openupgrade + - name: Configuration + run: | + sudo apt update + sudo apt install \ + expect \ + expect-dev \ + libevent-dev \ + libldap2-dev \ + libsasl2-dev \ + libxml2-dev \ + libxslt1-dev \ + nodejs \ + python3-lxml \ + python3-passlib \ + python3-psycopg2 \ + python3-serial \ + python3-simplejson \ + python3-werkzeug \ + python3-yaml \ + unixodbc-dev + - name: Requirements Installation + run: | + sed -i -E "s/(gevent==)21\.8\.0( ; sys_platform != 'win32' and python_version == '3.10')/\122.10.2\2/;s/(greenlet==)1.1.2( ; sys_platform != 'win32' and python_version == '3.10')/\12.0.2\2/" odoo/requirements.txt + pip install -q -r odoo/requirements.txt + pip install -r ./openupgrade/requirements.txt + pip install -U git+https://github.com/oca/openupgradelib + # this is for v18 l10n_eg_edi_eta which crashes without it + pip install asn1crypto + # required by v18 + pip install decorator + pip install coverage + # this is for account_peppol + pip install phonenumbers + - name: Test data + run: | + if test -n "$(ls openupgrade/openupgrade_scripts/scripts/*/tests/data*.py 2> /dev/null)"; then + for snippet in openupgrade/openupgrade_scripts/scripts/*/tests/data*.py; do + odoo-old/odoo-bin shell -d $DB < $snippet + done + fi + - name: OpenUpgrade test (enriched) + id: run_migration + run: | + # select modules and perform the upgrade + MODULES_OLD=$(\ + sed -n '/^+========/,$p' \ + openupgrade/docsource/modules180-190.rst \ + | grep "Done\|Partial\|Nothing" \ + | grep -v "theme_" \ + | sed -rn 's/((^\| *\|del\| *)|^\| *)([0-9a-z_]*)[ \|].*/\3/g p' \ + | sed '/^\s*$/d' \ + | paste -d, -s) + MODULES_NEW=$(\ + sed -n '/^+========/,$p' \ + openupgrade/docsource/modules180-190.rst \ + | grep "Done\|Partial\|Nothing" \ + | grep -v "theme_" \ + | sed -rn 's/((^\| *\|new\| *)|^\| *)([0-9a-z_]*)[ \|].*/\3/g p' \ + | sed '/^\s*$/d' \ + | paste -d, -s) + echo "modules_old=$MODULES_OLD" >> $GITHUB_OUTPUT + echo "modules_new=$MODULES_NEW" >> $GITHUB_OUTPUT + if [ -z "$MODULES_NEW" ]; then + echo "No modules to test yet" + exit + fi + REQUEST="update ir_module_module set state='uninstalled' \ + where name not in ('$(echo $MODULES_OLD | sed -e "s/,/','/g")')" + echo Set the modules as not installable if they are not in the following list : $MODULES_OLD + echo Running $REQUEST + psql $DB -c "$REQUEST" + ADDONS_PATHS="\ + $GITHUB_WORKSPACE/odoo/addons \ + $GITHUB_WORKSPACE/odoo/odoo/addons \ + $GITHUB_WORKSPACE/openupgrade" + echo Execution of Openupgrade with the update of the following modules : $MODULES_NEW + $ODOO \ + --addons-path=`echo $ADDONS_PATHS | awk -v OFS="," '$1=$1'` \ + --database=$DB \ + --db_host=$DB_HOST \ + --db_password=$DB_PASSWORD \ + --db_port=$DB_PORT \ + --db_user=$DB_USERNAME \ + --load=base,web,openupgrade_framework \ + --test-enable \ + --test-tags openupgrade \ + --log-handler odoo.models.unlink:WARNING \ + --stop-after-init \ + --without-demo=$MODULES_NEW \ + --update=$MODULES_NEW diff --git a/.github/workflows/test-migration.yml b/.github/workflows/test-migration.yml index bc425add5de4..46da397ffc28 100644 --- a/.github/workflows/test-migration.yml +++ b/.github/workflows/test-migration.yml @@ -13,6 +13,10 @@ on: branches: - "19.0" - "19.0-ocabot-*" + - "19.0-mig-*" + - "19.0-fix-*" + - "aggregated" + - "ledoent" jobs: test: @@ -23,7 +27,9 @@ jobs: DB_PASSWORD: "odoo" DB_PORT: 5432 DB_USERNAME: "odoo" - DOWNLOADS: https://github.com/${{github.repository}}/releases/download/databases + # Test databases live only on OCA upstream; forks reuse them so we + # don't have to mirror multi-GB psql dumps. + DOWNLOADS: https://github.com/OCA/OpenUpgrade/releases/download/databases ODOO: "./odoo/odoo-bin" PGHOST: "localhost" PGPASSWORD: "odoo" diff --git a/Dockerfile.openupgrade b/Dockerfile.openupgrade new file mode 100644 index 000000000000..5d946f732c28 --- /dev/null +++ b/Dockerfile.openupgrade @@ -0,0 +1,34 @@ +## Image: registry.ledoweb.com/openupgrade +## +## Built by .github/workflows/build-image.yml on every push to `aggregated`. +## Contains: +## - Odoo 19.0 base +## - Python deps the openupgrade-lab uses (s3fs, redis, sentry-sdk, etc.) +## - The full `aggregated` checkout of this repo as /opt/openupgrade +## The lab's docker-compose mounts the openupgradelib source over the +## pip-installed lib so it can hot-swap during development. + +FROM odoo:19.0 + +USER root + +# git needed for the openupgradelib install (no pinned PyPI release yet for 19.0). +RUN apt-get update && \ + apt-get install -y --no-install-recommends git && \ + rm -rf /var/lib/apt/lists/* + +RUN pip install --no-cache-dir --break-system-packages \ + fsspec>=2025.3.0 \ + s3fs \ + packaging \ + python-json-logger \ + redis \ + sentry-sdk \ + python-slugify \ + plaid-python \ + cssselect \ + "git+https://github.com/OCA/openupgradelib@master" + +COPY --chown=odoo:odoo . /opt/openupgrade + +USER odoo diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index 39d37c51049d..bb931dec1a91 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -836,17 +836,17 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | |del| pos_epson_printer | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| pos_event | | | +| pos_event |Done |Nothing to do | +---------------------------------------------------+----------------------+-------------------------------------------------+ | pos_event_sale | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| |new| pos_glory_cash | | | +| |new| pos_glory_cash |Done |Nothing to do | +---------------------------------------------------+----------------------+-------------------------------------------------+ | pos_hr |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | pos_hr_restaurant | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| |new| pos_imin | | | +| |new| pos_imin |Done |Nothing to do | +---------------------------------------------------+----------------------+-------------------------------------------------+ | pos_loyalty | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ @@ -854,17 +854,17 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | pos_mrp | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| pos_online_payment | | | +| pos_online_payment |Done |Nothing to do | +---------------------------------------------------+----------------------+-------------------------------------------------+ | pos_online_payment_self_order | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ | |del| pos_paytm | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| pos_pine_labs | | | +| pos_pine_labs |Done |Nothing to do | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| |new| pos_qfpay | | | +| |new| pos_qfpay |Done |Nothing to do | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| pos_razorpay | | | +| pos_razorpay |Done |Nothing to do | +---------------------------------------------------+----------------------+-------------------------------------------------+ | |new| pos_repair | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ @@ -876,13 +876,13 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | pos_restaurant_stripe | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| pos_sale | | | +| pos_sale |Done |Nothing to do | +---------------------------------------------------+----------------------+-------------------------------------------------+ | pos_sale_loyalty | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | pos_sale_margin | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| pos_self_order | | | +| pos_self_order |Done |Nothing to do | +---------------------------------------------------+----------------------+-------------------------------------------------+ | pos_self_order_adyen | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/base/19.0.1.3/pre-migration.py b/openupgrade_scripts/scripts/base/19.0.1.3/pre-migration.py index 39b145615b4b..699de5d46ed7 100644 --- a/openupgrade_scripts/scripts/base/19.0.1.3/pre-migration.py +++ b/openupgrade_scripts/scripts/base/19.0.1.3/pre-migration.py @@ -176,3 +176,48 @@ def migrate(env, version): openupgrade.rename_xmlids(env.cr, _renamed_xmlids) openupgrade.rename_xmlids(env.cr, _merged_xmlids, allow_merge=True) openupgrade.rename_fields(env, _renamed_fields) + _fix_user_groups_id_references(env) + + +def _fix_user_groups_id_references(env): + """rename_fields() renames the field column on res_users and quoted + references in ir.filters.domain, but it does not process ir.rule + domain_force, nor does it match unquoted dotted references like + ``user.groups_id.ids`` in Python-evaluated domain expressions. + + Concretely, an ir.rule with + domain_force = "[('groups_id', 'in', user.groups_id.ids)]" + has its LHS migrated to 'group_ids' but the RHS is left untouched, + so any view referencing the rule crashes at runtime with + ``AttributeError: 'res.users' object has no attribute 'groups_id'``. + """ + openupgrade.logged_query( + env.cr, + r""" + UPDATE ir_rule + SET domain_force = regexp_replace( + domain_force, '\muser\.groups_id\M', 'user.group_ids', 'g' + ) + WHERE domain_force ~ '\muser\.groups_id\M' + """, + ) + openupgrade.logged_query( + env.cr, + r""" + UPDATE ir_filters + SET domain = regexp_replace( + domain, '\muser\.groups_id\M', 'user.group_ids', 'g' + ) + WHERE domain ~ '\muser\.groups_id\M' + """, + ) + openupgrade.logged_query( + env.cr, + r""" + UPDATE ir_act_server + SET code = regexp_replace( + code, '\muser\.groups_id\M', 'user.group_ids', 'g' + ) + WHERE code ~ '\muser\.groups_id\M' + """, + ) diff --git a/openupgrade_scripts/scripts/pos_cashdro/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_cashdro/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..97988584f1ab --- /dev/null +++ b/openupgrade_scripts/scripts/pos_cashdro/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,14 @@ +---Models in module 'pos_cashdro'--- + +---Fields in module 'pos_cashdro'--- +pos_cashdro / pos.payment.method / cashdro_ip (char) : NEW +pos_cashdro / pos.payment.method / cashdro_password (char) : NEW +pos_cashdro / pos.payment.method / cashdro_use_lna (boolean) : NEW +pos_cashdro / pos.payment.method / cashdro_username (char) : NEW + +# NOTHING TO DO + +---XML records in module 'pos_cashdro'--- +NEW ir.ui.view: pos_cashdro.pos_payment_method_view_form_inherit_pos_cashdro + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/pos_dpopay/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_dpopay/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..f4194e9d082e --- /dev/null +++ b/openupgrade_scripts/scripts/pos_dpopay/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,22 @@ +---Models in module 'pos_dpopay'--- + +---Fields in module 'pos_dpopay'--- +pos_dpopay / pos.payment / dpopay_mobile_money_phone (char): NEW +pos_dpopay / pos.payment / dpopay_rrn (char) : NEW +pos_dpopay / pos.payment / dpopay_transaction_ref (char) : NEW +pos_dpopay / pos.payment.method / dpopay_bearer_token (char) : NEW hasdefault: default +pos_dpopay / pos.payment.method / dpopay_chain_id (char) : NEW +pos_dpopay / pos.payment.method / dpopay_client_id (char) : NEW +pos_dpopay / pos.payment.method / dpopay_client_secret (char) : NEW +pos_dpopay / pos.payment.method / dpopay_mid (char) : NEW +pos_dpopay / pos.payment.method / dpopay_payment_mode (selection): NEW selection_keys: ['card', 'momo'], hasdefault: default +pos_dpopay / pos.payment.method / dpopay_test_mode (boolean) : NEW +pos_dpopay / pos.payment.method / dpopay_tid (char) : NEW + +# NOTHING TO DO + +---XML records in module 'pos_dpopay'--- +NEW ir.ui.view: pos_dpopay.pos_payment_method_view_form_inherit_pos_dpopay +NEW ir.ui.view: pos_dpopay.view_pos_payment_form_inherited_pos_dpopay + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/pos_event/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_event/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..3debb6f072b7 --- /dev/null +++ b/openupgrade_scripts/scripts/pos_event/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,8 @@ +---Models in module 'pos_event'--- + +---Fields in module 'pos_event'--- + +---XML records in module 'pos_event'--- +NEW ir.ui.view: pos_event.event_registration_ticket_view_form + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/pos_glory_cash/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_glory_cash/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..d3046c233d03 --- /dev/null +++ b/openupgrade_scripts/scripts/pos_glory_cash/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,13 @@ +---Models in module 'pos_glory_cash'--- + +---Fields in module 'pos_glory_cash'--- +pos_glory_cash / pos.payment.method / glory_password (char) : NEW +pos_glory_cash / pos.payment.method / glory_username (char) : NEW +pos_glory_cash / pos.payment.method / glory_websocket_address (char): NEW + +# NOTHING TO DO + +---XML records in module 'pos_glory_cash'--- +NEW ir.ui.view: pos_glory_cash.pos_payment_method_view_form_inherit_pos_glory_cash + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/pos_imin/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_imin/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..837bb10a1e9f --- /dev/null +++ b/openupgrade_scripts/scripts/pos_imin/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'pos_imin'--- + +---Fields in module 'pos_imin'--- + +---XML records in module 'pos_imin'--- +NEW ir.ui.view: pos_imin.pos_config_view_form_inherit_pos_imin +NEW ir.ui.view: pos_imin.res_config_settings_view_form_inherit_pos_imin + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/pos_mollie/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_mollie/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..876a361b390c --- /dev/null +++ b/openupgrade_scripts/scripts/pos_mollie/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,12 @@ +---Models in module 'pos_mollie'--- + +---Fields in module 'pos_mollie'--- +pos_mollie / pos.payment.method / mollie_payment_provider_id (many2one): NEW relation: payment.provider +pos_mollie / pos.payment.method / mollie_terminal_id (char) : NEW + +# NOTHING TO DO + +---XML records in module 'pos_mollie'--- +NEW ir.ui.view: pos_mollie.pos_payment_method_view_form_inherit_pos_mollie + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/pos_online_payment/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_online_payment/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..59cd773459a9 --- /dev/null +++ b/openupgrade_scripts/scripts/pos_online_payment/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,8 @@ +---Models in module 'pos_online_payment'--- + +---Fields in module 'pos_online_payment'--- + +---XML records in module 'pos_online_payment'--- +NEW ir.ui.view: pos_online_payment.res_config_settings_view_form + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/pos_pine_labs/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_pine_labs/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..27acfab9d799 --- /dev/null +++ b/openupgrade_scripts/scripts/pos_pine_labs/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'pos_pine_labs'--- + +---Fields in module 'pos_pine_labs'--- + +---XML records in module 'pos_pine_labs'--- +NEW ir.ui.view: pos_pine_labs.view_pos_payment_form_inherit_pine_labs +DEL ir.ui.view: pos_pine_labs.view_pos_pos_form_inherit_pos_pine_labs + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/pos_qfpay/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_qfpay/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..7e6897690cc1 --- /dev/null +++ b/openupgrade_scripts/scripts/pos_qfpay/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,15 @@ +---Models in module 'pos_qfpay'--- + +---Fields in module 'pos_qfpay'--- +pos_qfpay / pos.payment.method / qfpay_latest_response (char) : NEW +pos_qfpay / pos.payment.method / qfpay_notification_key (char) : NEW +pos_qfpay / pos.payment.method / qfpay_payment_type (selection): NEW selection_keys: ['alipay', 'amex_card', 'card_payment', 'fps', 'octopus', 'payme', 'union', 'unionpay_card', 'wx'] +pos_qfpay / pos.payment.method / qfpay_pos_key (char) : NEW +pos_qfpay / pos.payment.method / qfpay_terminal_ip_address (char): NEW + +# NOTHING TO DO + +---XML records in module 'pos_qfpay'--- +NEW ir.ui.view: pos_qfpay.pos_payment_method_view_form + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/pos_razorpay/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_razorpay/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..907ee83ddbf1 --- /dev/null +++ b/openupgrade_scripts/scripts/pos_razorpay/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,8 @@ +---Models in module 'pos_razorpay'--- + +---Fields in module 'pos_razorpay'--- +pos_razorpay / pos.payment / razorpay_p2p_request_id (char): NEW + +# NOTHING TO DO + +---XML records in module 'pos_razorpay'--- diff --git a/openupgrade_scripts/scripts/pos_safaricom/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_safaricom/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..e0b8d2145db9 --- /dev/null +++ b/openupgrade_scripts/scripts/pos_safaricom/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,25 @@ +---Models in module 'pos_safaricom'--- +new model transaction.lipa.na.mpesa + +# NOTHING TO DO + +---Fields in module 'pos_safaricom'--- +pos_safaricom / pos.payment.method / business_short_code (char) : NEW +pos_safaricom / pos.payment.method / consumer_key (char) : NEW +pos_safaricom / pos.payment.method / consumer_secret (char) : NEW +pos_safaricom / pos.payment.method / passkey (char) : NEW +pos_safaricom / pos.payment.method / safaricom_payment_type (selection): NEW selection_keys: ['lipa_na_mpesa', 'mpesa_express'], hasdefault: default +pos_safaricom / pos.payment.method / safaricom_test_mode (boolean) : NEW hasdefault: default +pos_safaricom / transaction.lipa.na.mpesa / amount (integer) : NEW +pos_safaricom / transaction.lipa.na.mpesa / name (char) : NEW +pos_safaricom / transaction.lipa.na.mpesa / number (char) : NEW +pos_safaricom / transaction.lipa.na.mpesa / received_at (datetime) : NEW +pos_safaricom / transaction.lipa.na.mpesa / trans_id (char) : NEW + +# NOTHING TO DO + +---XML records in module 'pos_safaricom'--- +NEW ir.model.access: pos_safaricom.access_transaction_lipa_na_mpesa_pos +NEW ir.ui.view: pos_safaricom.pos_payment_method_view_form_inherit_pos_safaricom + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/pos_sale/19.0.1.1/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_sale/19.0.1.1/upgrade_analysis_work.txt new file mode 100644 index 000000000000..f6ce84acbbdb --- /dev/null +++ b/openupgrade_scripts/scripts/pos_sale/19.0.1.1/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'pos_sale'--- + +---Fields in module 'pos_sale'--- + +---XML records in module 'pos_sale'--- +DEL ir.ui.view: pos_sale.crm_team_view_kanban_dashboard +DEL ir.ui.view: pos_sale.product_template_form_view + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/pos_self_order/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_self_order/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..a21d72d8b762 --- /dev/null +++ b/openupgrade_scripts/scripts/pos_self_order/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,22 @@ +---Models in module 'pos_self_order'--- + +---Fields in module 'pos_self_order'--- +pos_self_order / pos.category / hour_after (float) : module is now 'point_of_sale' ('pos_self_order') +pos_self_order / pos.category / hour_until (float) : module is now 'point_of_sale' ('pos_self_order') +pos_self_order / pos.category / pos_config_ids (many2many) : NEW relation: pos.config +pos_self_order / pos.config / self_ordering_image_background_ids (many2many): NEW relation: ir.attachment +pos_self_order / pos.config / self_ordering_takeaway (boolean): DEL +pos_self_order / pos.order / self_ordering_table_id (many2one): NEW relation: restaurant.table +pos_self_order / pos.order / source (False) : NEW selection_keys: ['kiosk', 'mobile', 'pos'], mode: modify +pos_self_order / pos.preset / available_in_self (boolean) : NEW hasdefault: default +pos_self_order / pos.preset / mail_template_id (many2one) : NEW relation: mail.template +pos_self_order / pos.preset / service_at (selection) : NEW required, selection_keys: ['counter', 'delivery', 'table'], hasdefault: default + +# NOTHING TO DO + +---XML records in module 'pos_self_order'--- +NEW ir.ui.view: pos_self_order.view_pos_preset_form +NEW mail.template: pos_self_order.delivery_email_template (noupdate) +NEW mail.template: pos_self_order.takeout_email_template (noupdate) + +# NOTHING TO DO