Review: Needs Fixing
Amit,

Good catch.

Can you please improve it to look like this?

progress_rate = 100.0 * hours.get(task.id, 0.0) / res[task.id]['total_hours']
progress_rate = round(min(progress_rate, 100.0), 2)

Thanks to you and Olivier Dony for approval.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-task-progressbar-ado/+merge/68045
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-task-progressbar-ado.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to