From 0bb1d799ca670d564f783128fbebad1d41217150 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 22 Jan 2009 19:27:00 +0100 Subject: [PATCH] [FIX] apply the state change of the module before upgrading languages lp bug: https://launchpad.net/bugs/319977 fixed bzr revid: stephane@tinyerp.com-20090122182700-ujlaok0b5027i8ow --- bin/addons/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index ff11a6ec204..03553c95f54 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -618,6 +618,7 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, **kwargs): ver = release.major_version + '.' + package.data.get('version', '1.0') # Set new modules and dependencies modobj.write(cr, 1, [mid], {'state': 'installed', 'latest_version': ver}) + cr.commit() # Update translations for all installed languages modobj.update_translations(cr, 1, [mid], None) cr.commit()