[IMP] improve code,add condition if context none
bzr revid: avo@tinyerp.com-20140318084314-y63h7bho393fhcix
This commit is contained in:
parent
be288a6201
commit
f1ce85e807
|
@ -26,6 +26,8 @@ class res_partner(osv.osv):
|
|||
_inherit = 'res.partner'
|
||||
|
||||
def schedule_meeting(self, cr, uid, id, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
user_id = context.get('user_id')
|
||||
if user_id:
|
||||
partner_id = self.pool.get('res.users').browse(cr, uid, user_id).partner_id.id
|
||||
|
|
Loading…
Reference in New Issue