[FIX] base: reset `latest_version` field when uninstalling a module.

This commit is contained in:
Christophe Simonis 2015-07-29 12:00:15 +02:00
parent 034f540664
commit cb29f9efac
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ class module(osv.osv):
ir_model_data = self.pool.get('ir.model.data')
modules_to_remove = [m.name for m in self.browse(cr, uid, ids, context)]
ir_model_data._module_data_uninstall(cr, uid, modules_to_remove, context)
self.write(cr, uid, ids, {'state': 'uninstalled'})
self.write(cr, uid, ids, {'state': 'uninstalled', 'latest_version': False})
return True
def downstream_dependencies(self, cr, uid, ids, known_dep_ids=None,