odoo/odoo#202333

Created by Bugfix, Mathieu Coutant (mcou)
Merged at 6ac480453678302b27e70eac74a0fb3708d72bbe

Statuses:

label
odoo-dev:18.0-opw-4612328-sequence_placeholder_not_updated-mcou
head
c22a9593cdc4a69f8ea97268ce0ae299799541b8
merged
7 months ago by Accounting, William André (wan)
odoo/odoo
18.0 #202333
saas-18.1 #203723
saas-18.2 #203755
saas-18.3
saas-18.4
19.0
master #203775

[FIX] account: display correct placeholder name on invoice

Steps to reproduce:

  • Accounting > Customers > Invoices
  • Select all
  • Actions > Resequence
  • Add a month in the sequence: INV/2025/03/001
  • Create a new invoice and select a date in a future month
  • The name in the placeholder does not respect the new sequencing format

Cause:

_compute_name_placeholder uses _get_starting_sequence which always return the same format for invoices.

Solution:

Change _compute_name_placeholder, mimicking the way the sequence number is computed in _set_next_sequence.

opw-4612328