Fix deadline rule evaluation if there is no one

bzr revid: ced-719bee1c4224df518fec6476cfa1b3ae0fc76969
This commit is contained in:
ced 2007-09-06 14:12:10 +00:00
parent 9a4e51673d
commit 1b51ced696
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ class crm_case(osv.osv):
base = mx.DateTime.strptime(case.date_action_last, '%Y-%m-%d %H:%M:%S')
else:
base = mx.DateTime.strptime(case.create_date[:19], '%Y-%m-%d %H:%M:%S')
elif action.trg_date_type=='deadline':
elif action.trg_date_type=='deadline' and case.date_deadline:
base = mx.DateTime.strptime(case.date_deadline, '%Y-%m-%d')
if base:
fnct = {