Merge lp:~openerp-dev/openobject-addons/trunk-bug-898556-kjo into lp:openobject-addons

Proposed by Kuldeep Joshi(OpenERP)
Status: Merged
Merged at revision: 6007
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-898556-kjo
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
project_long_term/project_long_term.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-898556-kjo
Reviewer Review Type Date Requested Status
Bhumika Shrimali (community) Approve
Review via email: mp+84719@code.launchpad.net

Description of the change

Set the default duration is hours in generate_phase method of project_long_term.py

To post a comment you must log in.
Revision history for this message
Bhumika Shrimali (sbh-openerp) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== 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 @@
179 'months': 'm', 'month':'month', 'm':'m',179 'months': 'm', 'month':'month', 'm':'m',
180 'weeks': 'w', 'week': 'w', 'w':'w',180 'weeks': 'w', 'week': 'w', 'w':'w',
181 'hours': 'H', 'hour': 'H', 'h':'H',181 'hours': 'H', 'hour': 'H', 'h':'H',
182 }.get(phase.product_uom.name.lower(), "h")182 }.get(phase.product_uom.name.lower(), "H")
183 duration = str(phase.duration) + duration_uom183 duration = str(phase.duration) + duration_uom
184 result += '''184 result += '''
185 def Phase_%s():185 def Phase_%s():

Subscribers

People subscribed via source and target branches

to all changes: