From 503213e3cfdb38d6f6b577c99ee32fb597360b56 Mon Sep 17 00:00:00 2001 From: "Jacky (trj)" Date: Thu, 20 Oct 2022 12:52:30 +0000 Subject: [PATCH] [FIX] point_of_sale: duplicate message in the chatter session Due to the 7e23eda02fc00b4e4a85e3a71b14fb1081441a04 change, cash control is now independent of accounting and is only done in the Point of Sale. A mistake was made in the refactor, a message was sent in the bank statement and in the session before. Now we don't use the bank statement chatter so it should only be sent to the session closes odoo/odoo#103684 X-original-commit: 6968c7761ef7b564950b9a672ee875975d249c83 Signed-off-by: Masereel Pierre Signed-off-by: Trinh Jacky (trj) --- addons/point_of_sale/models/pos_session.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/addons/point_of_sale/models/pos_session.py b/addons/point_of_sale/models/pos_session.py index f93f7e3f4ed..b0c2b8b844e 100644 --- a/addons/point_of_sale/models/pos_session.py +++ b/addons/point_of_sale/models/pos_session.py @@ -1479,11 +1479,6 @@ class PosSession(models.Model): if notes: message += notes.replace('\n', '
') if message: - self.env['mail.message'].create({ - 'body': message, - 'model': self._name, - 'res_id': self.id, - }) self.message_post(body=message) def action_view_order(self):