[FIX] handle the case when the addons has no version

bzr revid: christophe@tinyerp.com-20081211124724-6fj8g1er1iaet3ov
This commit is contained in:
Christophe Simonis 2008-12-11 13:47:24 +01:00
parent 7b0b4cca4f
commit 458324a685
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ class MigrationManager(object):
from tools.parse_version import parse_version
parsed_installed_version = parse_version(pkg.installed_version)
parsed_installed_version = parse_version(pkg.installed_version or '')
current_version = parse_version(convert_version(pkg.data.get('version', '0')))
versions = _get_migration_versions(pkg)