bzr revid: pinky-2174b27a08004ef9bc775c67b3c7bccea718d359
This commit is contained in:
pinky 2006-12-14 16:11:18 +00:00
parent 410f3f131f
commit 484630fc57
1 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,8 @@ class module(osv.osv):
mdemo = mdemo and self.state_change(cr, uid, ids2, newstate, context, level-1)
if not module.dependencies_id:
mdemo = module.demo
self.write(cr, uid, [module.id], {'state': newstate, 'demo':mdemo})
if module.state=='uninstalled':
self.write(cr, uid, [module.id], {'state': newstate, 'demo':mdemo})
demo = demo and mdemo
return demo