Kuldeep Joshi(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-898556-kjo into
lp:openobject-addons.
Requested reviews:
Bhumika (OpenERP) (sbh-openerp)
Related bugs:
Bug #898556 in OpenERP Addons: "Addons rev. 5820 pcalendar.py localization
Issue: ValueError: 14.0h is not a valid duration: valid units are: d w m y M H"
https://bugs.launchpad.net/openobject-addons/+bug/898556
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-898556-kjo/+merge/84719
Set the default duration is hours in generate_phase method of
project_long_term.py
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-898556-kjo/+merge/84719
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-898556-kjo.
=== modified file 'project_long_term/project_long_term.py'
--- project_long_term/project_long_term.py 2011-11-22 08:51:38 +0000
+++ project_long_term/project_long_term.py 2011-12-07 06:45:30 +0000
@@ -179,7 +179,7 @@
'months': 'm', 'month':'month', 'm':'m',
'weeks': 'w', 'week': 'w', 'w':'w',
'hours': 'H', 'hour': 'H', 'h':'H',
- }.get(phase.product_uom.name.lower(), "h")
+ }.get(phase.product_uom.name.lower(), "H")
duration = str(phase.duration) + duration_uom
result += '''
def Phase_%s():
_______________________________________________
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