crm,project: task and case must have normal priority

bzr revid: ced-1d0e63758a843dd59e7ef9f241b51a581e4b3424
This commit is contained in:
ced 2007-07-11 15:10:13 +00:00
parent c516938e5e
commit 4189a9db07
2 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ class crm_case(osv.osv):
'active': lambda *a: 1,
'user_id': lambda s,cr,uid,c={}: uid,
'state': lambda *a: 'draft',
'priority': lambda *a: AVAILABLE_PRIORITIES[1][0],
'priority': lambda *a: AVAILABLE_PRIORITIES[2][0],
'date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
}
_order = 'priority, date_deadline desc, id desc'

View File

@ -199,7 +199,7 @@ class task(osv.osv):
_defaults = {
'user_id': lambda obj,cr,uid,context: uid,
'state': lambda *a: 'open',
'priority': lambda *a: '1',
'priority': lambda *a: '2',
'progress': lambda *a: 0,
'sequence': lambda *a: 10,
'active': lambda *a: True,