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

Hi there,

I have configured my invoice number sequence to start over by 1 in 2020. However, I've noticed that, when I order the invoices by invoice number, it doesn't work as expected.

Check this image: https://i.ibb.co/z8jVZBN/odoo-rodering.png

Acording to Odoo, numers 10, 11, 12...are greater than 2, 3.

This is Odoo 12. 

Any ideas on how can I change this behaviour?

Thanks for your support.

Ảnh đại diện
Huỷ bỏ

That's happen because the number field in account.invoice is character (not integer).

Hi. Makes sense, but I cannot modify that from the administrator panel. Do you have a code snippet to override these properties? Thanks

Câu trả lời hay nhất

what is your sequence size? make 3-4 and that will be solved.

Ảnh đại diện
Huỷ bỏ