Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
1398 Tampilan

I use the following sequence: F-YYYY-xxxx.

YYYY being the year and xxxx being the invoice number.

xxxx must follow each other. For example F-2024-0156 and F-2025-0157.

I had no problems in V17. Since V18 Odoo tells me sequence error, it wants to note F-2024-0156 and F-2025-0001.

I can't resequence all my customer invoices....

Is there a solution?

Avatar
Buang
Jawaban Terbai

I have a similar issue....Where is it possible to change the Invoice sequence format.  I would like it as follows: INV-YYMMxxxx, where xxxx resets every month.

I found where to change the sequence for purchase orders and sales orders, but the same method does not appear to be available for invoices (ie: the "sequence" doesn't seem to exist in the same place for invoices).

The closest I could get was INV/25/03/0005, where Odoo detected the year/month/number, but I can't find where the delimiters/format are defined.

Thanks in advance!

Avatar
Buang
Jawaban Terbai

Since you don't want to reset the sequence to 1 for the next year, your actual sequence is F-xxxx.. the YYYY is just for cosmetic only and has no effect on the sequence. This is not an odoo problem, it's just you want something else that odoo is not designed to do and some customization will be needed.

I usually do it in code, but in your case, maybe you need two steps:
step 1: generate the sequence with just prefix F and it will just work
step 2: replace the reference from F to F-YYYY using some kind of automation.

However, since you already have data and the sequence for 2024 is already created. So maybe for 2025, you can change the sequencing to have next sequence id of the last sequence id of 2024+1 and hopefully it will work for the whole year. next year, you manually set the next sequence_id again.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Agu 25
67
1
Agu 25
167
2
Agu 25
181
0
Agu 25
77
1
Agu 25
130