hi,
I want to write name and department of user that push a button ,I write tender_approve function and to achieve user name i use 'uid ' ,but i don't know what should use for department .can anyone help me?
def tender_approve(self,cr,uid,ids,context = None):
self.write(cr, uid, ids ,{'user' : uid ,'department' : ? })
return True
openerp v6