2016-08-19 38 views
1

我需要像从网站的消息,我想在下面Controller文件的代码,像消息编程

@http.route(["/web/like/comment"]) 
def likemsg(self): 
    cr,uid = request.cr,request.uid 
    pool = request.registry 
    obj_msg = pool['mail.message'] 
    obj_mg.create(cr,uid,{'vote_user_ids':[(4, 0, uid)]}) 

我不知道如何通过MSG_ID在创建方法?

回答

0

最后我得到溶液:

obj_msg.write(CR,UID,[MSG_ID],{ 'vote_user_ids':[(4,UID)]})