summaryrefslogtreecommitdiff
path: root/bin/addons/base/module/module_web.py
diff options
context:
space:
mode:
authornoz <noz@tinyerp.com>2010-07-10 14:56:19 +0530
committernoz <noz@tinyerp.com>2010-07-10 14:56:19 +0530
commit79976ba1e60c12ff0d2e3aacf90b28a149108ff2 (patch)
tree5555a7f9d4c86940630c0a0c31e66d64721290b8 /bin/addons/base/module/module_web.py
parentdd99061d57b269f994b628c36478c90af434b939 (diff)
[IMP] Improvement for web addons support (Find web dependencies for particular addons).
bzr revid: noz@tinyerp.com-20100710092619-azl5aqd9ppp4hpdi
Diffstat (limited to 'bin/addons/base/module/module_web.py')
-rw-r--r--bin/addons/base/module/module_web.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/addons/base/module/module_web.py b/bin/addons/base/module/module_web.py
index 699bcd91e06..8f65dc3960d 100644
--- a/bin/addons/base/module/module_web.py
+++ b/bin/addons/base/module/module_web.py
@@ -37,14 +37,10 @@ class module_web(osv.osv):
self.create(cr, uid, module)
def button_install(self, cr, uid, ids, context={}):
- res = self.write(cr, uid, ids, {'state': 'installed'}, context)
- if res:
- return "Installed"
+ return self.write(cr, uid, ids, {'state': 'installed'}, context)
def button_uninstall(self, cr, uid, ids, context={}):
- res = self.write(cr, uid, ids, {'state': 'uninstalled'}, context)
- if res:
- return "Uninstalled"
+ return self.write(cr, uid, ids, {'state': 'uninstalled'}, context)
module_web()