From 455dc1f242f5513e1990a4c54144e9332ea79572 Mon Sep 17 00:00:00 2001 From: Flectra Community Bot Date: Sun, 25 Jul 2021 02:10:22 +0000 Subject: [PATCH] Automatic Update form OCA2FC Migrator --- .gitlab-ci.yml | 388 +++++++++--------- README.md | 14 +- account_banking_mandate/COPYRIGHT | 1 + .../migrations/14.0.1.0.0/post-migrate.py | 1 + account_banking_pain_base/COPYRIGHT | 4 +- account_banking_sepa_direct_debit/COPYRIGHT | 1 + account_payment_order/COPYRIGHT | 10 +- account_payment_sale/tests/test_sale_order.py | 2 +- 8 files changed, 215 insertions(+), 206 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ca041f8..b5e001f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,193 +45,23 @@ test_all_modules: --db_password flectra --database test_all --test-enable - --init account_banking_mandate,account_payment_order_return,account_payment_order,account_payment_sale,account_payment_purchase_stock,account_payment_purchase,account_payment_partner,account_banking_pain_base,account_banking_sepa_direct_debit,account_banking_sepa_credit_transfer,account_payment_mode + --init account_payment_purchase,account_banking_sepa_direct_debit,account_payment_sale,account_banking_pain_base,account_banking_mandate,account_payment_order,account_payment_purchase_stock,account_banking_sepa_credit_transfer,account_payment_mode,account_payment_partner,account_payment_order_return --stop-after-init --log-level error - --log-handler flectra.addons.account_banking_mandate:TEST - --log-handler flectra.addons.account_payment_order_return:TEST - --log-handler flectra.addons.account_payment_order:TEST - --log-handler flectra.addons.account_payment_sale:TEST - --log-handler flectra.addons.account_payment_purchase_stock:TEST --log-handler flectra.addons.account_payment_purchase:TEST - --log-handler flectra.addons.account_payment_partner:TEST - --log-handler flectra.addons.account_banking_pain_base:TEST --log-handler flectra.addons.account_banking_sepa_direct_debit:TEST + --log-handler flectra.addons.account_payment_sale:TEST + --log-handler flectra.addons.account_banking_pain_base:TEST + --log-handler flectra.addons.account_banking_mandate:TEST + --log-handler flectra.addons.account_payment_order:TEST + --log-handler flectra.addons.account_payment_purchase_stock:TEST --log-handler flectra.addons.account_banking_sepa_credit_transfer:TEST --log-handler flectra.addons.account_payment_mode:TEST + --log-handler flectra.addons.account_payment_partner:TEST + --log-handler flectra.addons.account_payment_order_return:TEST " -test_module_account_banking_mandate: - stage: testsingle - when: on_failure - image: - name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest - entrypoint: ["/bin/sh", "-c"] - script: - - apt-get install -y p7zip-full - - apt install -y expect-dev - - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - - su - flectra -c "mkdir ~/others" - - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-payment.git ~/others/account-payment" - - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - - mkdir ${CI_PROJECT_DIR}/ci_data - - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - - export PGPASSWORD="flectra" - - createdb -h psql -U flectra -O flectra -T template1 test_account_banking_mandate - - psql -h psql -U flectra -d test_account_banking_mandate -f ${CI_PROJECT_DIR}/ci_data/dump.sql - - su - flectra -c "mkdir -p ~/.local/share/filestore" - - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_banking_mandate - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_banking_mandate - - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/account-payment - --db_host psql - --db_port 5432 - --db_user flectra - --db_password flectra - --database test_account_banking_mandate - --test-enable -i account_banking_mandate - --stop-after-init - --log-level error - --log-handler flectra.addons.account_banking_mandate:TEST" - -test_module_account_payment_order_return: - stage: testsingle - when: on_failure - image: - name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest - entrypoint: ["/bin/sh", "-c"] - script: - - apt-get install -y p7zip-full - - apt install -y expect-dev - - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - - su - flectra -c "mkdir ~/others" - - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-payment.git ~/others/account-payment" - - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - - mkdir ${CI_PROJECT_DIR}/ci_data - - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - - export PGPASSWORD="flectra" - - createdb -h psql -U flectra -O flectra -T template1 test_account_payment_order_return - - psql -h psql -U flectra -d test_account_payment_order_return -f ${CI_PROJECT_DIR}/ci_data/dump.sql - - su - flectra -c "mkdir -p ~/.local/share/filestore" - - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_payment_order_return - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_payment_order_return - - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/account-payment - --db_host psql - --db_port 5432 - --db_user flectra - --db_password flectra - --database test_account_payment_order_return - --test-enable -i account_payment_order_return - --stop-after-init - --log-level error - --log-handler flectra.addons.account_payment_order_return:TEST" - -test_module_account_payment_order: - stage: testsingle - when: on_failure - image: - name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest - entrypoint: ["/bin/sh", "-c"] - script: - - apt-get install -y p7zip-full - - apt install -y expect-dev - - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - - su - flectra -c "mkdir ~/others" - - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-payment.git ~/others/account-payment" - - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - - mkdir ${CI_PROJECT_DIR}/ci_data - - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - - export PGPASSWORD="flectra" - - createdb -h psql -U flectra -O flectra -T template1 test_account_payment_order - - psql -h psql -U flectra -d test_account_payment_order -f ${CI_PROJECT_DIR}/ci_data/dump.sql - - su - flectra -c "mkdir -p ~/.local/share/filestore" - - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_payment_order - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_payment_order - - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/account-payment - --db_host psql - --db_port 5432 - --db_user flectra - --db_password flectra - --database test_account_payment_order - --test-enable -i account_payment_order - --stop-after-init - --log-level error - --log-handler flectra.addons.account_payment_order:TEST" - -test_module_account_payment_sale: - stage: testsingle - when: on_failure - image: - name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest - entrypoint: ["/bin/sh", "-c"] - script: - - apt-get install -y p7zip-full - - apt install -y expect-dev - - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - - su - flectra -c "mkdir ~/others" - - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-payment.git ~/others/account-payment" - - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - - mkdir ${CI_PROJECT_DIR}/ci_data - - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - - export PGPASSWORD="flectra" - - createdb -h psql -U flectra -O flectra -T template1 test_account_payment_sale - - psql -h psql -U flectra -d test_account_payment_sale -f ${CI_PROJECT_DIR}/ci_data/dump.sql - - su - flectra -c "mkdir -p ~/.local/share/filestore" - - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_payment_sale - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_payment_sale - - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/account-payment - --db_host psql - --db_port 5432 - --db_user flectra - --db_password flectra - --database test_account_payment_sale - --test-enable -i account_payment_sale - --stop-after-init - --log-level error - --log-handler flectra.addons.account_payment_sale:TEST" - -test_module_account_payment_purchase_stock: - stage: testsingle - when: on_failure - image: - name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest - entrypoint: ["/bin/sh", "-c"] - script: - - apt-get install -y p7zip-full - - apt install -y expect-dev - - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - - su - flectra -c "mkdir ~/others" - - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-payment.git ~/others/account-payment" - - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - - mkdir ${CI_PROJECT_DIR}/ci_data - - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - - export PGPASSWORD="flectra" - - createdb -h psql -U flectra -O flectra -T template1 test_account_payment_purchase_stock - - psql -h psql -U flectra -d test_account_payment_purchase_stock -f ${CI_PROJECT_DIR}/ci_data/dump.sql - - su - flectra -c "mkdir -p ~/.local/share/filestore" - - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_payment_purchase_stock - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_payment_purchase_stock - - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/account-payment - --db_host psql - --db_port 5432 - --db_user flectra - --db_password flectra - --database test_account_payment_purchase_stock - --test-enable -i account_payment_purchase_stock - --stop-after-init - --log-level error - --log-handler flectra.addons.account_payment_purchase_stock:TEST" - test_module_account_payment_purchase: stage: testsingle when: on_failure @@ -266,7 +96,7 @@ test_module_account_payment_purchase: --log-level error --log-handler flectra.addons.account_payment_purchase:TEST" -test_module_account_payment_partner: +test_module_account_banking_sepa_direct_debit: stage: testsingle when: on_failure image: @@ -283,22 +113,56 @@ test_module_account_payment_partner: - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - - createdb -h psql -U flectra -O flectra -T template1 test_account_payment_partner - - psql -h psql -U flectra -d test_account_payment_partner -f ${CI_PROJECT_DIR}/ci_data/dump.sql + - createdb -h psql -U flectra -O flectra -T template1 test_account_banking_sepa_direct_debit + - psql -h psql -U flectra -d test_account_banking_sepa_direct_debit -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_payment_partner - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_payment_partner + - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_banking_sepa_direct_debit + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_banking_sepa_direct_debit - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR},~/others/account-payment --db_host psql --db_port 5432 --db_user flectra --db_password flectra - --database test_account_payment_partner - --test-enable -i account_payment_partner + --database test_account_banking_sepa_direct_debit + --test-enable -i account_banking_sepa_direct_debit --stop-after-init --log-level error - --log-handler flectra.addons.account_payment_partner:TEST" + --log-handler flectra.addons.account_banking_sepa_direct_debit:TEST" + +test_module_account_payment_sale: + stage: testsingle + when: on_failure + image: + name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest + entrypoint: ["/bin/sh", "-c"] + script: + - apt-get install -y p7zip-full + - apt install -y expect-dev + - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt + - su - flectra -c "mkdir ~/others" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-payment.git ~/others/account-payment" + - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 + - mkdir ${CI_PROJECT_DIR}/ci_data + - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip + - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip + - export PGPASSWORD="flectra" + - createdb -h psql -U flectra -O flectra -T template1 test_account_payment_sale + - psql -h psql -U flectra -d test_account_payment_sale -f ${CI_PROJECT_DIR}/ci_data/dump.sql + - su - flectra -c "mkdir -p ~/.local/share/filestore" + - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_payment_sale + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_payment_sale + - su - flectra -c "/opt/flectra/flectra-bin + --addons-path ${CI_PROJECT_DIR},~/others/account-payment + --db_host psql + --db_port 5432 + --db_user flectra + --db_password flectra + --database test_account_payment_sale + --test-enable -i account_payment_sale + --stop-after-init + --log-level error + --log-handler flectra.addons.account_payment_sale:TEST" test_module_account_banking_pain_base: stage: testsingle @@ -334,7 +198,7 @@ test_module_account_banking_pain_base: --log-level error --log-handler flectra.addons.account_banking_pain_base:TEST" -test_module_account_banking_sepa_direct_debit: +test_module_account_banking_mandate: stage: testsingle when: on_failure image: @@ -351,22 +215,90 @@ test_module_account_banking_sepa_direct_debit: - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - - createdb -h psql -U flectra -O flectra -T template1 test_account_banking_sepa_direct_debit - - psql -h psql -U flectra -d test_account_banking_sepa_direct_debit -f ${CI_PROJECT_DIR}/ci_data/dump.sql + - createdb -h psql -U flectra -O flectra -T template1 test_account_banking_mandate + - psql -h psql -U flectra -d test_account_banking_mandate -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_banking_sepa_direct_debit - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_banking_sepa_direct_debit + - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_banking_mandate + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_banking_mandate - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR},~/others/account-payment --db_host psql --db_port 5432 --db_user flectra --db_password flectra - --database test_account_banking_sepa_direct_debit - --test-enable -i account_banking_sepa_direct_debit + --database test_account_banking_mandate + --test-enable -i account_banking_mandate --stop-after-init --log-level error - --log-handler flectra.addons.account_banking_sepa_direct_debit:TEST" + --log-handler flectra.addons.account_banking_mandate:TEST" + +test_module_account_payment_order: + stage: testsingle + when: on_failure + image: + name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest + entrypoint: ["/bin/sh", "-c"] + script: + - apt-get install -y p7zip-full + - apt install -y expect-dev + - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt + - su - flectra -c "mkdir ~/others" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-payment.git ~/others/account-payment" + - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 + - mkdir ${CI_PROJECT_DIR}/ci_data + - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip + - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip + - export PGPASSWORD="flectra" + - createdb -h psql -U flectra -O flectra -T template1 test_account_payment_order + - psql -h psql -U flectra -d test_account_payment_order -f ${CI_PROJECT_DIR}/ci_data/dump.sql + - su - flectra -c "mkdir -p ~/.local/share/filestore" + - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_payment_order + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_payment_order + - su - flectra -c "/opt/flectra/flectra-bin + --addons-path ${CI_PROJECT_DIR},~/others/account-payment + --db_host psql + --db_port 5432 + --db_user flectra + --db_password flectra + --database test_account_payment_order + --test-enable -i account_payment_order + --stop-after-init + --log-level error + --log-handler flectra.addons.account_payment_order:TEST" + +test_module_account_payment_purchase_stock: + stage: testsingle + when: on_failure + image: + name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest + entrypoint: ["/bin/sh", "-c"] + script: + - apt-get install -y p7zip-full + - apt install -y expect-dev + - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt + - su - flectra -c "mkdir ~/others" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-payment.git ~/others/account-payment" + - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 + - mkdir ${CI_PROJECT_DIR}/ci_data + - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip + - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip + - export PGPASSWORD="flectra" + - createdb -h psql -U flectra -O flectra -T template1 test_account_payment_purchase_stock + - psql -h psql -U flectra -d test_account_payment_purchase_stock -f ${CI_PROJECT_DIR}/ci_data/dump.sql + - su - flectra -c "mkdir -p ~/.local/share/filestore" + - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_payment_purchase_stock + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_payment_purchase_stock + - su - flectra -c "/opt/flectra/flectra-bin + --addons-path ${CI_PROJECT_DIR},~/others/account-payment + --db_host psql + --db_port 5432 + --db_user flectra + --db_password flectra + --database test_account_payment_purchase_stock + --test-enable -i account_payment_purchase_stock + --stop-after-init + --log-level error + --log-handler flectra.addons.account_payment_purchase_stock:TEST" test_module_account_banking_sepa_credit_transfer: stage: testsingle @@ -436,3 +368,71 @@ test_module_account_payment_mode: --log-level error --log-handler flectra.addons.account_payment_mode:TEST" +test_module_account_payment_partner: + stage: testsingle + when: on_failure + image: + name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest + entrypoint: ["/bin/sh", "-c"] + script: + - apt-get install -y p7zip-full + - apt install -y expect-dev + - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt + - su - flectra -c "mkdir ~/others" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-payment.git ~/others/account-payment" + - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 + - mkdir ${CI_PROJECT_DIR}/ci_data + - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip + - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip + - export PGPASSWORD="flectra" + - createdb -h psql -U flectra -O flectra -T template1 test_account_payment_partner + - psql -h psql -U flectra -d test_account_payment_partner -f ${CI_PROJECT_DIR}/ci_data/dump.sql + - su - flectra -c "mkdir -p ~/.local/share/filestore" + - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_payment_partner + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_payment_partner + - su - flectra -c "/opt/flectra/flectra-bin + --addons-path ${CI_PROJECT_DIR},~/others/account-payment + --db_host psql + --db_port 5432 + --db_user flectra + --db_password flectra + --database test_account_payment_partner + --test-enable -i account_payment_partner + --stop-after-init + --log-level error + --log-handler flectra.addons.account_payment_partner:TEST" + +test_module_account_payment_order_return: + stage: testsingle + when: on_failure + image: + name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest + entrypoint: ["/bin/sh", "-c"] + script: + - apt-get install -y p7zip-full + - apt install -y expect-dev + - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt + - su - flectra -c "mkdir ~/others" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-payment.git ~/others/account-payment" + - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 + - mkdir ${CI_PROJECT_DIR}/ci_data + - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip + - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip + - export PGPASSWORD="flectra" + - createdb -h psql -U flectra -O flectra -T template1 test_account_payment_order_return + - psql -h psql -U flectra -d test_account_payment_order_return -f ${CI_PROJECT_DIR}/ci_data/dump.sql + - su - flectra -c "mkdir -p ~/.local/share/filestore" + - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_account_payment_order_return + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_payment_order_return + - su - flectra -c "/opt/flectra/flectra-bin + --addons-path ${CI_PROJECT_DIR},~/others/account-payment + --db_host psql + --db_port 5432 + --db_user flectra + --db_password flectra + --database test_account_payment_order_return + --test-enable -i account_payment_order_return + --stop-after-init + --log-level error + --log-handler flectra.addons.account_payment_order_return:TEST" + diff --git a/README.md b/README.md index e2492fe..6c50da6 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,16 @@ Available addons addon | version | summary --- | --- | --- -[account_banking_mandate](account_banking_mandate/) | 2.0.1.1.0| Banking mandates -[account_payment_order_return](account_payment_order_return/) | 2.0.1.0.1| Account Payment Order Return -[account_payment_order](account_payment_order/) | 2.0.1.2.2| Account Payment Order -[account_payment_sale](account_payment_sale/) | 2.0.1.0.0| Adds payment mode on sale orders -[account_payment_purchase_stock](account_payment_purchase_stock/) | 2.0.1.0.0| Integrate Account Payment Purchase with Stock [account_payment_purchase](account_payment_purchase/) | 2.0.1.0.0| Adds Bank Account and Payment Mode on Purchase Orders -[account_payment_partner](account_payment_partner/) | 2.0.1.2.1| Adds payment mode on partners and invoices -[account_banking_pain_base](account_banking_pain_base/) | 2.0.1.0.0| Base module for PAIN file generation [account_banking_sepa_direct_debit](account_banking_sepa_direct_debit/) | 2.0.1.1.0| Create SEPA files for Direct Debit +[account_payment_sale](account_payment_sale/) | 2.0.1.0.0| Adds payment mode on sale orders +[account_banking_pain_base](account_banking_pain_base/) | 2.0.1.0.0| Base module for PAIN file generation +[account_banking_mandate](account_banking_mandate/) | 2.0.1.1.0| Banking mandates +[account_payment_order](account_payment_order/) | 2.0.1.2.2| Account Payment Order +[account_payment_purchase_stock](account_payment_purchase_stock/) | 2.0.1.0.0| Integrate Account Payment Purchase with Stock [account_banking_sepa_credit_transfer](account_banking_sepa_credit_transfer/) | 2.0.1.0.0| Create SEPA XML files for Credit Transfers [account_payment_mode](account_payment_mode/) | 2.0.1.0.1| Account Payment Mode +[account_payment_partner](account_payment_partner/) | 2.0.1.2.1| Adds payment mode on partners and invoices +[account_payment_order_return](account_payment_order_return/) | 2.0.1.0.1| Account Payment Order Return diff --git a/account_banking_mandate/COPYRIGHT b/account_banking_mandate/COPYRIGHT index 5de072c..3872709 100644 --- a/account_banking_mandate/COPYRIGHT +++ b/account_banking_mandate/COPYRIGHT @@ -17,6 +17,7 @@ Most of the files are Copyright 2020 Tecnativa - Carlos Dauden Copyright 2021 Opener B.V. - Stefan Rijnhart © 2013-2016 Akretion (Alexis de Lattre ) + © 2015-2016 Akretion (Alexis de Lattre ) Copyright 2018 Flectra Community Many files also contain contributions from third diff --git a/account_banking_mandate/migrations/14.0.1.0.0/post-migrate.py b/account_banking_mandate/migrations/14.0.1.0.0/post-migrate.py index 5345d56..0f34725 100644 --- a/account_banking_mandate/migrations/14.0.1.0.0/post-migrate.py +++ b/account_banking_mandate/migrations/14.0.1.0.0/post-migrate.py @@ -26,5 +26,6 @@ def migrate(cr, version): FROM account_move_line aml WHERE aml.mandate_id IS NOT NULL AND am.mandate_id IS NULL + AND am.id=aml.move_id """ ) diff --git a/account_banking_pain_base/COPYRIGHT b/account_banking_pain_base/COPYRIGHT index 39cb594..16b7390 100644 --- a/account_banking_pain_base/COPYRIGHT +++ b/account_banking_pain_base/COPYRIGHT @@ -15,7 +15,9 @@ Most of the files are Copyright 2017 Tecnativa - Pedro M. Baeza Copyright 2019 ACSONE SA/NV Copyright 2021 Tecnativa - Carlos Roca - © 2013 Akretion - Alexis de Lattre + © 2013-2016 Akretion (Alexis de Lattre ) + © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza + © 2015-2016 Akretion (Alexis de Lattre ) © 2016 Akretion (Alexis de Lattre ) Copyright 2018 Flectra Community diff --git a/account_banking_sepa_direct_debit/COPYRIGHT b/account_banking_sepa_direct_debit/COPYRIGHT index 96f5350..73c6e1b 100644 --- a/account_banking_sepa_direct_debit/COPYRIGHT +++ b/account_banking_sepa_direct_debit/COPYRIGHT @@ -1,6 +1,7 @@ Most of the files are :Copyright: This stylesheet has been placed in the public domain. + Copyright 2015-2016 Akretion - Alexis de Lattre Copyright 2017 Camptocamp SA Copyright 2017 Creu Blanca @@ -9,18 +12,19 @@ Most of the files are Copyright 2019 Tecnativa - Pedro M. Baeza © 2009 EduSense BV () © 2011-2013 Therp BV () - © 2013-2014 ACSONE SA (). + © 2013-2016 Akretion (https://www.akretion.com) © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza © 2014-2015 ACSONE SA/NV () + © 2014-2016 Akretion (Alexis de Lattre ) © 2014-2016 Tecnativa - Pedro M. Baeza + © 2015-2016 Akretion () © 2015-2016 Akretion (https://www.akretion.com/) + © 2015-2016 Akretion - Alexis de Lattre © 2016 Akretion () © 2016 Akretion (Alexis de Lattre - alexis.delattre@akretion.com) © 2016 Akretion (Alexis de Lattre ) © 2016 Akretion (https://www.akretion.com/) © 2016 Aselcis (). - © 2017 Acsone SA/NV () - © 2017 Camptocamp SA © 2017 Creu Blanca Copyright 2018 Flectra Community diff --git a/account_payment_sale/tests/test_sale_order.py b/account_payment_sale/tests/test_sale_order.py index 13c89c8..2cb8055 100644 --- a/account_payment_sale/tests/test_sale_order.py +++ b/account_payment_sale/tests/test_sale_order.py @@ -95,4 +95,4 @@ class TestSaleOrder(CommonTestCase): invoice = order.invoice_ids self.assertEqual(len(invoice), 1) self.assertEqual(invoice.payment_mode_id, self.payment_mode_2) - self.assertEqual(invoice.partner_bank_id, self.bank) + self.assertFalse(invoice.partner_bank_id)