From d949569e87628da8b1b64aea5d38cf6843d6dfff Mon Sep 17 00:00:00 2001 From: aliya Date: Mon, 14 Feb 2022 10:53:38 +0000 Subject: [PATCH] [IMP] account: clarify credit note creation message Task: 2760136 Currently, when a credit note is created there is a message in the chatter "Invoice created", which is not coherent. - Credit Note creation message should be "Credit Note created" closes odoo/odoo#87868 X-original-commit: 93f65ff0b9e19037112c33ebda4cbfbd34f633e8 Signed-off-by: Olivier Colson Signed-off-by: Tastemirova Aliya (alta) --- addons/account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 2a28c499307..d85c4db97db 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -3258,7 +3258,7 @@ class AccountMove(models.Model): def _creation_subtype(self): # OVERRIDE - if self.move_type in ('out_invoice', 'out_refund', 'out_receipt'): + if self.move_type in ('out_invoice', 'out_receipt'): return self.env.ref('account.mt_invoice_created') else: return super(AccountMove, self)._creation_subtype()