[英]Openrerp chatter message_post error
I have created a custom module with chatter in the form. 我创建了一个带有表格形式的自定义模块的自定义模块。
I want to post a custom message. 我要发布自定义消息。 but I am getting following error. 但我收到以下错误。
File "/opt/openerp/addons/mail/mail_thread.py", line 1023, in message_post
"Invalid thread_id; should be 0, False, an ID or a list with one ID"
AssertionError: Invalid thread_id; should be 0, False, an ID or a list with one ID
For my .py program is at the following link 对于我的.py程序位于以下链接
try this function, Hope this will solve your error. 试试这个功能,希望这可以解决您的错误。
def function_which_post_msg(self, cr, uid, ids, context=None):
self.message_post(cr, uid, [ids[0]], body=_("New Question has been <b>created</b>"), context=context)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.