[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
This commit is contained in:
Christophe Simonis 2009-01-22 19:27:00 +01:00 committed by Stephane Wirtel
parent e2bed1d1ed
commit 0bb1d799ca
1 changed files with 1 additions and 0 deletions

View File

@ -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()