odoo/odoo#106692

Created by Accounting, Dylan Kiss (dyki)
label
odoo-dev:master-credit_note_titles-dyki
head
a58b979b390142d840bd8a09b2772e355706395f
target
master
merged
1 year ago by Accounting, John Laterre (jol)

[FIX] account,l10n_{au,in,gcc_invoice}: distinguish credit note titles

Currently we distinguish customer invoice titles based on the state they are in: draft, posted or cancelled. For the customer credit notes we did not have this dinstinction.

This fix makes sure that the title of a credit note is also adapted based on its state.

[task-3067251](https://www.odoo.com/web#id=3067251&cids=1&menu_id=4720&action=4043&model=project.task&view_type=form)

Retarget of https://github.com/odoo/odoo/pull/106262
Related: https://github.com/odoo/enterprise/pull/34464

---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr