[MERGE] lp:898556 (project_long_term: fix time unit in Schedule Phases Wizard)

bzr revid: rco@openerp.com-20111216155153-lt4au03b2vq1b3hj
This commit is contained in:
Raphael Collet 2011-12-16 16:51:53 +01:00
commit 628f357b0b
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class project_phase(osv.osv):
'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():