From 52cc01967f7442bbe6c9a7bfadce24436e90e331 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 10 Feb 2025 12:19:51 +0100 Subject: [PATCH] [FIX] avoid test failures resulting from not yet migrated localizations --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7c42581e3d9e..a6aa70714801 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -127,6 +127,14 @@ jobs: echo Set the modules as not installable if they are not in the following list : $MODULES_OLD echo Running $REQUEST psql $DB -c "$REQUEST" + echo Set chart template to generic for companies with charts from not yet migrated localizations + REQUEST="update res_company set chart_template_id=( + select res_id from ir_model_data where module='l10n_generic_coa' and name='configurable_chart_template' + ) where id in ( + select res_id from ir_model_data where model='res.company' and module not in + ('$(echo $MODULES_OLD | sed -e "s/,/','/g")') + )" + psql $DB -c "$REQUEST" ADDONS_PATHS="\ $GITHUB_WORKSPACE/odoo/addons \ $GITHUB_WORKSPACE/odoo/odoo/addons \