Do not copy module fields when copying translations
issue11628 review413431003 (grafted from 61b9460496075cfb629037cb7302ab02e3ca931a) --HG-- branch : 6.0
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user