[FIX] point_of_sale: duplicate message in the chatter session

Due to the 7e23eda02f 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 <pim@odoo.com>
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
This commit is contained in:
Jacky (trj)
2022-10-21 09:17:01 +02:00
parent c84fba790a
commit 503213e3cf
@@ -1479,11 +1479,6 @@ class PosSession(models.Model):
if notes:
message += notes.replace('\n', '<br/>')
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):