From 527b3bfb2b17a821d6051a9010ec717a62c7c748 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Tue, 21 Apr 2020 14:22:31 +0000 Subject: [PATCH] [FIX] website_gengo: adapt source->src in 13.0 In 13.0 66ef641f33 the source field was removed. This would cause an error when gengo is updating a existing ir.translation record (eg. if we do two times gengo auto-translations). opw-2234713 closes #49884 Signed-off-by: Nicolas Lempereur (nle) --- addons/website_gengo/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_gengo/controllers/main.py b/addons/website_gengo/controllers/main.py index ceb380671a526..48ae3c00c3086 100644 --- a/addons/website_gengo/controllers/main.py +++ b/addons/website_gengo/controllers/main.py @@ -57,7 +57,7 @@ def set_translations(self, data, lang): vals.update({ 'name': 'website', 'lang': lang, - 'source': initial_content, + 'src': initial_content, }) IrTranslation.create(vals) return True