summaryrefslogtreecommitdiff
path: root/addons/base_setup/installer.py
diff options
context:
space:
mode:
authoruco (Open ERP) <uco@tinyerp.com>2010-09-20 11:27:30 +0530
committeruco (Open ERP) <uco@tinyerp.com>2010-09-20 11:27:30 +0530
commit404f74b0de91ec11f563a54ebbc8745fbdb363d5 (patch)
treeb41714419c37f556e69f694fac453531e5320ae9 /addons/base_setup/installer.py
parent487117554a4882b7b69b8993a611a5a0218d88ec (diff)
parentbe8fcf14fbb2567db1179c6c36b63f23534330e1 (diff)
[MERGE]
bzr revid: uco@tinyerp.com-20100920055730-1tlsthrcos7p7bgi
Diffstat (limited to 'addons/base_setup/installer.py')
-rw-r--r--addons/base_setup/installer.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/addons/base_setup/installer.py b/addons/base_setup/installer.py
index eb111ecb943..0c8478ba57d 100644
--- a/addons/base_setup/installer.py
+++ b/addons/base_setup/installer.py
@@ -65,13 +65,12 @@ class base_setup_installer(osv.osv_memory):
"automatic picking lists generation and more."),
'marketing':fields.boolean('Marketing',
help="Helps you manage your marketing campaigns step by step."),
- 'profile_tools':fields.boolean('Miscellaneous Tools',
+ 'profile_tools':fields.boolean('Extra Tools',
help="Lets you install various interesting but non-essential tools "
"like Survey, Lunch and Ideas box."),
'report_designer':fields.boolean('Advanced Reporting',
help="Lets you install various tools to simplify and enhance "
"OpenERP's report creation."),
- 'thunderbird' :fields.boolean('Thunderbird'),
# Vertical modules
'product_expiry':fields.boolean('Food Industry',
help="Installs a preselected set of OpenERP applications "
@@ -107,11 +106,13 @@ class base_setup_installer(osv.osv_memory):
return ['account_voucher']
return None
- def onchange_moduleselection(self, cr, uid, ids, *args):
+ def onchange_moduleselection(self, cr, uid, ids, *args, **kargs):
+ value = {}
+ # Calculate progress
closed, total = self.get_current_progress(cr, uid)
-
progress = round(100. * closed / (total + len(filter(None, args))))
+ value.update({'progress':progress})
if progress < 10.:
progress = 10.
- return {'value':{'progress':progress}}
+ return {'value':value}
base_setup_installer()