diff --git a/.circleci/config.yml b/.circleci/config.yml index 28fe7d6..50ddd57 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,33 +21,30 @@ jobs: name: Setup Log Folder For Reports command: sudo mkdir -p .log && sudo chmod 777 .log -# - run: -# name: Run Test -# command: docker-compose run --rm odoo run_pytest.sh + - run: + name: Run Test + command: docker-compose run --rm odoo run_pytest.sh - # - run: - # name: Codacy Coverage - # command: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l python -r .log/coverage.xml - # - store_test_results: - # path: .log + - store_test_results: + path: .log # job that find the next tag for the current branch/repo and push the tag to github. # it will trigger the publish of a new docker image. - # auto-tag: - # machine: true - # steps: - # - checkout - # - run: - # <<: *quay_io_login - # - run: - # name: Get nws - # command: | - # curl -L $NWS_BIN_LOCATION > ./nws - # chmod +x ./nws - # - run: - # name: Set tag - # command: | - # ./nws circleci create-tag -t odoo-base + auto-tag: + machine: true + steps: + - checkout + - run: + <<: *quay_io_login + - run: + name: Get nws + command: | + curl -L $NWS_BIN_LOCATION > ./nws + chmod +x ./nws + - run: + name: Set tag + command: | + ./nws circleci create-tag -t odoo-base workflows: version: 2 @@ -56,10 +53,10 @@ workflows: - tests: context: quay.io - # - auto-tag: - # context: nws - # requires: - # - tests - # filters: - # branches: - # only: /^1\d\.0/ + - auto-tag: + context: nws + requires: + - tests + filters: + branches: + only: /^1\d\.0/ diff --git a/.docker_files/main/__manifest__.py b/.docker_files/main/__manifest__.py index 54f2b2f..314f964 100644 --- a/.docker_files/main/__manifest__.py +++ b/.docker_files/main/__manifest__.py @@ -11,6 +11,8 @@ "category": "Other", "summary": "Install all addons required for testing.", "depends": [ + "contacts", + "partner_autocomplete_disable" "partner_firstname_before_lastname" ], "installable": True, diff --git a/.docker_files/odoo.conf b/.docker_files/odoo.conf index 9576115..e157561 100644 --- a/.docker_files/odoo.conf +++ b/.docker_files/odoo.conf @@ -27,7 +27,7 @@ log_handler = :INFO log_level = info logfile = None logrotate = False -gevent-port = 8071 +longpolling_port = 8071 max_cron_threads = 1 osv_memory_age_limit = 1.0 osv_memory_count_limit = False diff --git a/Dockerfile b/Dockerfile index 7d249d8..268d203 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ RUN gitoo install-all --conf_file /gitoo.yml --destination "${THIRD_PARTY_ADDONS USER odoo +COPY partner_autocomplete_disable /mnt/extra-addons/partner_autocomplete_disable COPY partner_firstname_before_lastname /mnt/extra-addons/partner_firstname_before_lastname COPY .docker_files/main /mnt/extra-addons/main diff --git a/docker-compose.yml b/docker-compose.yml index 5215fc1..a61165e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,4 @@ +version: '3' services: odoo: build: diff --git a/gitoo.yml b/gitoo.yml index a62eec2..b2dc6e2 100644 --- a/gitoo.yml +++ b/gitoo.yml @@ -2,3 +2,9 @@ branch: "16.0" includes: - partner_firstname + +- url: https://github.com/OCA/queue + branch: "16.0" + includes: + - queue_job + - queue_job_cron diff --git a/partner_firstname_before_lastname/__init__.py b/partner_firstname_before_lastname/__init__.py index b090f84..b1b521d 100644 --- a/partner_firstname_before_lastname/__init__.py +++ b/partner_firstname_before_lastname/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2022 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# © 2024 Numigi (tm) and all its contributors (https://bit.ly/numigiens) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). def set_partner_names_order_in_res_config_settings(cr, registry): diff --git a/partner_firstname_before_lastname/__manifest__.py b/partner_firstname_before_lastname/__manifest__.py index 651b4f5..a5a2e3b 100644 --- a/partner_firstname_before_lastname/__manifest__.py +++ b/partner_firstname_before_lastname/__manifest__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2022 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# © 2024 Numigi (tm) and all its contributors (https://bit.ly/numigiens) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). {