From b4a32b3e1133ea18c710d48244658eed5bb400a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 8 Aug 2022 22:16:56 +0200 Subject: [PATCH] Do not copy module fields when copying translations issue11628 review413431003 (grafted from 61b9460496075cfb629037cb7302ab02e3ca931a) --HG-- branch : 6.0 --- trytond/ir/translation.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index 076add6378..a911c37f72 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -626,6 +626,13 @@ class Translation(ModelSQL, ModelView): cls._translation_report_cache.set(key, cache) return cls._translation_report_cache.get(key, {}).get(text, text) + @classmethod + def copy(cls, translations, default=None): + default = default.copy() if default is not None else {} + default.setdefault('module') + default.setdefault('overriding_module') + return super().copy(translations, default=default) + @classmethod def delete(cls, translations): pool = Pool()