[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:
commit
628f357b0b
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue