From 10724701d3f5b720032e36433f582fb9f88dd28f Mon Sep 17 00:00:00 2001 From: Pablo Esteban Date: Thu, 26 Sep 2024 12:19:19 +0200 Subject: [PATCH] [UPD] copier.yml: add question to enable checklog-odoo, enabled by default in Odoo >= 18.0 --- copier.yml | 5 +++++ .../{% if ci == 'GitHub' %}test.yml{% endif %}.jinja | 3 +++ 2 files changed, 8 insertions(+) diff --git a/copier.yml b/copier.yml index a4022ab..1529d43 100644 --- a/copier.yml +++ b/copier.yml @@ -157,6 +157,11 @@ include_wkhtmltopdf: Do you need to install wkhtmltopdf? Usually only needed if you're going to test PDF report generation. +enable_checklog_odoo: + type: bool + default: "{% if odoo_version < 18.0 -%}no{% else %}yes{% endif %}" + help: Do you want warnings to make tests fail? + github_enforce_dev_status_compatibility: type: bool default: yes diff --git a/src/.github/workflows/{% if ci == 'GitHub' %}test.yml{% endif %}.jinja b/src/.github/workflows/{% if ci == 'GitHub' %}test.yml{% endif %}.jinja index 00528a7..1870fb0 100644 --- a/src/.github/workflows/{% if ci == 'GitHub' %}test.yml{% endif %}.jinja +++ b/src/.github/workflows/{% if ci == 'GitHub' %}test.yml{% endif %}.jinja @@ -120,6 +120,9 @@ jobs: INCLUDE: "{% raw %}${{ matrix.include }}{% endraw %}" EXCLUDE: "{% raw %}${{ matrix.exclude }}{% endraw %}" {%- endif %} + {%- if enable_checklog_odoo %} + OCA_ENABLE_CHECKLOG_ODOO: "1" + {%- endif %} {%- for key, value in github_ci_extra_env.items() %} {{ key }}: {{ value|to_json }} {%- endfor %}