Do not copy module fields when copying translations

issue11628
review413431003
(grafted from 61b9460496075cfb629037cb7302ab02e3ca931a)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier
2022-08-08 22:16:56 +02:00
parent e998407131
commit b4a32b3e11
+7
View File
@@ -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()