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
1=== modified file 'project_long_term/project_long_term.py'
2--- project_long_term/project_long_term.py 2011-11-22 08:51:38 +0000
3+++ project_long_term/project_long_term.py 2011-12-07 06:45:30 +0000
4@@ -179,7 +179,7 @@
5 'months': 'm', 'month':'month', 'm':'m',
6 'weeks': 'w', 'week': 'w', 'w':'w',
7 'hours': 'H', 'hour': 'H', 'h':'H',
8- }.get(phase.product_uom.name.lower(), "h")
9+ }.get(phase.product_uom.name.lower(), "H")
10 duration = str(phase.duration) + duration_uom
11 result += '''
12 def Phase_%s():

Subscribers

People subscribed via source and target branches

to all changes: