diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-11-23 15:50:01 +0200 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-11-23 15:50:01 +0200 |
| commit | 063ac95428c587518a40f2ab20f9c35e35cff932 (patch) | |
| tree | d40d1307eda5e6466cfd6f9558a7336227124ed6 /bin/addons/base/module/wizard/base_module_upgrade.py | |
| parent | 091a3eba2b361f719a8218acf36875013f9a8dd3 (diff) | |
base.module.upgrade: have default context arg.
bzr revid: p_christ@hol.gr-20101123135001-gosz6v48duf3t467
Diffstat (limited to 'bin/addons/base/module/wizard/base_module_upgrade.py')
| -rw-r--r-- | bin/addons/base/module/wizard/base_module_upgrade.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/addons/base/module/wizard/base_module_upgrade.py b/bin/addons/base/module/wizard/base_module_upgrade.py index 4db4028bdb0..f018ded2fe2 100644 --- a/bin/addons/base/module/wizard/base_module_upgrade.py +++ b/bin/addons/base/module/wizard/base_module_upgrade.py @@ -20,6 +20,7 @@ ############################################################################## import pooler +import wizard from osv import osv, fields class base_module_upgrade(osv.osv_memory): @@ -80,7 +81,7 @@ class base_module_upgrade(osv.osv_memory): res = mod_obj.read(cr, uid, ids, ['name','state'], context) return {'module_info': '\n'.join(map(lambda x: x['name']+' : '+x['state'], res))} - def upgrade_module(self, cr, uid, ids, context): + def upgrade_module(self, cr, uid, ids, context=None): pool = pooler.get_pool(cr.dbname) mod_obj = self.pool.get('ir.module.module') data_obj = self.pool.get('ir.model.data') |
