projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
410f3f1
)
Bugfix
author
pinky
<>
Thu, 14 Dec 2006 16:11:18 +0000
(16:11 +0000)
committer
pinky
<>
Thu, 14 Dec 2006 16:11:18 +0000
(16:11 +0000)
bzr revid: pinky-
2174b27a08004ef9bc775c67b3c7bccea718d359
bin/addons/base/module/module.py
patch
|
blob
|
history
diff --git
a/bin/addons/base/module/module.py
b/bin/addons/base/module/module.py
index
71ea8f3
..
ea73b96
100644
(file)
--- a/
bin/addons/base/module/module.py
+++ b/
bin/addons/base/module/module.py
@@
-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