Allow to export translation for only installed module for issue823
This commit is contained in:
1 parent
5c243c66e4
commit
2725787441
1 file changed
+3
-1
@@ -1071,7 +1071,9 @@ class TranslationExportInit(WizardOSV):
|
||||
|
||||
def get_module(self, cursor, user, context):
|
||||
module_obj = self.pool.get('ir.module.module')
|
||||
module_ids = module_obj.search(cursor, user, [], context=context)
|
||||
module_ids = module_obj.search(cursor, user, [
|
||||
('state', 'in', ['installed', 'to upgrade', 'to remove']),
|
||||
], context=context)
|
||||
modules = module_obj.browse(cursor, user, module_ids, context=context)
|
||||
res = [(module.name, module.name) for module in modules]
|
||||
return res
|
||||
|
||||
Reference in new issue
Block a user