Openrerp聊天信息

2024-09-27 22:19:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我用chatter在表单中创建了一个自定义模块。在

我想发布一个自定义消息。但我有以下错误。在

  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

py程序的链接如下

http://pastebin.com/9Bq4MZQ9


Tags: orpyanidfalsewithmailbe
1条回答
网友
1楼 · 发布于 2024-09-27 22:19:43

试试这个函数,希望能解决你的错误。在

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)

相关问题 更多 >

    热门问题