Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1423 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 25
7
1
thg 8 25
161
1
thg 8 25
227
2
thg 8 25
219
0
thg 8 25
156