diff options
| author | Vir (Open ERP) <vir@tinyerp.com> | 2010-08-18 09:59:27 +0530 |
|---|---|---|
| committer | Vir (Open ERP) <vir@tinyerp.com> | 2010-08-18 09:59:27 +0530 |
| commit | f2b463d1025a46a82a7ac5f8d19cf3e19a73efee (patch) | |
| tree | af26f169924a4732bdebf54af4c9e8a73e7c8537 /addons/project_long_term/project_long_term.py | |
| parent | 9f00ec5d5398f425a7fa2dc93ea3d893d10afdf1 (diff) | |
| parent | ad32f01bae2d71732a50620ff7bb63e5a6aa6985 (diff) | |
[Merge]
bzr revid: vir@tinyerp.com-20100818042927-kbtyfhzxwczmrupa
Diffstat (limited to 'addons/project_long_term/project_long_term.py')
| -rw-r--r-- | addons/project_long_term/project_long_term.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/addons/project_long_term/project_long_term.py b/addons/project_long_term/project_long_term.py index 1bb2510064b..04fde75342e 100644 --- a/addons/project_long_term/project_long_term.py +++ b/addons/project_long_term/project_long_term.py @@ -120,8 +120,6 @@ class project_phase(osv.osv): _constraints = [ (_check_recursion,'Loops in phases not allowed',['next_phase_ids', 'previous_phase_ids']), (_check_dates, 'Phase start-date must be lower than phase end-date.', ['date_start', 'date_end']), - #(_check_constraint_start, 'Phase must start-after constraint start Date.', ['date_start', 'constraint_date_start']), - #(_check_constraint_end, 'Phase must end-before constraint end Date.', ['date_end', 'constraint_date_end']), ] def onchange_project(self, cr, uid, ids, project, context=None): @@ -145,7 +143,6 @@ class project_phase(osv.osv): calendar_id = phase.project_id.resource_calendar_id and phase.project_id.resource_calendar_id.id or False resource_id = resource_obj.search(cr, uid, [('user_id', '=', phase.responsible_id.id)]) if resource_id: -# cal_id = resource_obj.browse(cr, uid, resource_id[0], context=context).calendar_id.id res = resource_obj.read(cr, uid, resource_id, ['calendar_id'], context=context)[0] cal_id = res.get('calendar_id', False) and res.get('calendar_id')[0] or False if cal_id: @@ -168,7 +165,6 @@ class project_phase(osv.osv): calendar_id = phase.project_id.resource_calendar_id and phase.project_id.resource_calendar_id.id or False resource_id = resource_obj.search(cr, uid, [('user_id', '=', phase.responsible_id.id)], context=context) if resource_id: -# cal_id = resource_obj.browse(cr, uid, resource_id[0], context=context).calendar_id.id res = resource_obj.read(cr, uid, resource_id, ['calendar_id'], context=context)[0] cal_id = res.get('calendar_id', False) and res.get('calendar_id')[0] or False if cal_id: |
