跳至内容
菜单
此问题已终结
1 回复
3707 查看

How to mark message as to-do by code in odoo8

形象
丢弃
最佳答案

Hi Vinod,


There is a method for making any message as a to-do ( starred) in "mail.message" object. it is used in many places in Odoo.

    set_message_starred(self, cr, uid, msg_ids, starred, create_missing=True, context=None):
""" Set messages as (un)starred. Technically, the notifications related
to uid are set to (un)starred.
:param bool starred: set notification as (un)starred
:param bool create_missing: create notifications for missing entries
(i.e. when acting on displayed messages not notified)
"""

Regards,

Hardik

形象
丢弃
编写者

Hi Hardikgiri, Thanks for giving solution still i want some other problem in sale order i added new role called sales team head. Sale user once after creating sale quotation user will send that quote to team lead by mail through mail wizard how can i mark that mail as starred for the team lead Can you explain with example

相关帖文 回复 查看 活动
0
6月 25
585
1
5月 25
1368
0
1月 21
2435
0
3月 19
5255
0
2月 16
4353