[FIX] base: reset `latest_version` field when uninstalling a module.
This commit is contained in:
parent
034f540664
commit
cb29f9efac
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue