[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 <oco@odoo.com>
Signed-off-by: Tastemirova Aliya (alta) <alta@odoo.com>
This commit is contained in:
aliya
2022-04-04 12:32:23 +02:00
parent 4a91b626f9
commit d949569e87
+1 -1
View File
@@ -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()