Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3699 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 25
580
1
thg 5 25
1357
0
thg 1 21
2431
0
thg 3 19
5255
0
thg 2 16
4342