crm,project: task and case must have normal priority
bzr revid: ced-1d0e63758a843dd59e7ef9f241b51a581e4b3424
This commit is contained in:
parent
c516938e5e
commit
4189a9db07
|
@ -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'
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue