[FIX] calendar: set resposible user by default with current login user

bzr revid: hmo@tinyerp.com-20100709090036-xfapyojgahkkhkwn
This commit is contained in:
Harry (OpenERP) 2010-07-09 14:30:36 +05:30
parent 89a315717d
commit 1f673db082
2 changed files with 3 additions and 1 deletions

View File

@ -378,6 +378,7 @@ property or property parameter."),
}
_defaults = {
'state': 'needs-action',
'user_id': lambda self, cr, uid, ctx: uid,
}
def copy(self, cr, uid, id, default=None, context=None):

View File

@ -80,7 +80,8 @@ class crm_meeting(osv.osv, crm_case):
_defaults = {
'state': lambda *a: 'draft',
'active': lambda *a: 1,
'active': lambda *a: 1,
'user_id': lambda self, cr, uid, ctx: uid,
}
def open_meeting(self, cr, uid, ids, context=None):