From b6dd90486facd16dcc9d720a01df2946c776120c Mon Sep 17 00:00:00 2001 From: czoellner Date: Wed, 21 Sep 2016 13:47:32 +0200 Subject: [PATCH] [FIX] set_message_read() to set_message_done() --- mail_move_message/mail_move_message_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail_move_message/mail_move_message_models.py b/mail_move_message/mail_move_message_models.py index 7b216e2..73138ac 100644 --- a/mail_move_message/mail_move_message_models.py +++ b/mail_move_message/mail_move_message_models.py @@ -231,8 +231,8 @@ class wizard(models.TransientModel): @api.one def read_close(self): - self.message_id.set_message_read(True) - self.message_id.child_ids.set_message_read(True) + self.message_id.set_message_done() + self.message_id.child_ids.set_message_done() return {'type': 'ir.actions.act_window_close'}