How to mark message as to-do by code in odoo8
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Jan 21
|
1432 | ||
|
0
Mar 19
|
4077 | ||
|
0
Feb 16
|
3365 | ||
|
0
Mar 15
|
8360 | ||
|
0
Mar 15
|
3767 |