From c33c017c8564cdafe8d7ba5268d516e6507c48b9 Mon Sep 17 00:00:00 2001 From: KKamaa Date: Mon, 6 Mar 2023 14:23:10 +0300 Subject: [PATCH] [FIX] js, python string --- support_branding/models/res_company.py | 2 +- support_branding/static/src/js/res_config_edition.js | 2 +- support_branding/static/src/js/support_branding.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/support_branding/models/res_company.py b/support_branding/models/res_company.py index 34d94bd5a..f23e4c5dd 100644 --- a/support_branding/models/res_company.py +++ b/support_branding/models/res_company.py @@ -20,7 +20,7 @@ class ResCompany(models.Model): ) self.env.cr.execute( "select key, value from ir_config_parameter where key ilike " - "'%support_%';" + "'support_%';" ) res = self.env.cr.dictfetchall() if any(res): diff --git a/support_branding/static/src/js/res_config_edition.js b/support_branding/static/src/js/res_config_edition.js index ce0fc970a..3bf72448d 100644 --- a/support_branding/static/src/js/res_config_edition.js +++ b/support_branding/static/src/js/res_config_edition.js @@ -20,7 +20,7 @@ odoo.define("support_branding.ResConfigEdition", function (require) { if (result && "support_release" in result) self.support_cp_release = result.support_release; if (result && "support_branding_color" in result) - self.support_branding_color = result.support_branding_color; + self.support_cp_color = result.support_branding_color; }); return $.when(this._super.apply(this, arguments), def_1); diff --git a/support_branding/static/src/js/support_branding.js b/support_branding/static/src/js/support_branding.js index 4963a79e1..7f8ea9a80 100644 --- a/support_branding/static/src/js/support_branding.js +++ b/support_branding/static/src/js/support_branding.js @@ -32,7 +32,7 @@ odoo.define("support_branding.CrashManager", function (require) { if (result && "support_release" in result) self.support_cp_release = result.support_release; if (result && "support_branding_color" in result) - self.support_branding_color = result.support_branding_color; + self.support_cp_color = result.support_branding_color; }); }); },