Chatter currently orders messages by id. Is there a way to order items by date?
Odoo 11. In the chatter dialog beneath a record, all the logs (from Log Note) are ordered by id. This is defined on the mail.message model:
""" Messages model: system notification (replacing res.log notifications),
comments (OpenChatter discussion) and incoming emails. """
_name = 'mail.message'
_description = 'Message'
_order = 'id desc'
Is there a way to order this by date? Simply inheriting the model and setting the _order did not work. eg. this is what I thought would work:
_inherit = 'mail.message'
_order = 'date desc'
Thank you in advance!