Odoo Help

0

Sort messages with oldest at the top

By
A. Person
on 10/13/15, 7:00 PM 661 views

When working through messages, my team and I tend to get bogged down in the newest ones, each of us constantly replying to each other about just a few tasks since everybody sees the tasks with newest activity first.  Can we see the messages with oldest activity first to prevent this?

0

Hi,

You can achieve your goal using set _order attribute of the mail.message model.

By default it is set inside mail > mail_message.py file as like _order = "id desc"

You just need to make this _order = "id" of mail.message model in any one of your custom module. Or you can directly change inside default module to just have a look of the effect. It will make changes inside all messages.

After doing this you can get the oldest message first.

It will help a lot.

Thanks.

Can this be done via the UI?

A. Person
on 12/8/15, 11:17 AM
0
Pawan
On 10/14/15, 1:18 AM

Person,

try with:

_order = "id asc"

Regards

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 10/13/15, 7:00 PM
Seen: 661 times
Last updated: 10/14/15, 1:21 AM