Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2696 Ansichten

Hello,

I am testing Odoo 17 and setup a database with sequences (ir.sequence) for both 2023 and 2024.

When I try to issue a document using a date from 2023, Odoo cannot find the "subsequence for date range" and always considering 2024 as the sequence.

In later versions, the sequence number is based in "use date range option".

Please check the following image with sequences setup:

https://ibb.co/BfDngQm

Thank you all in advance


Avatar
Verwerfen
Autor Beste Antwort

Hello,

I have found it.

I forgot to pass the "date" argument to the ir_sequence.next_by_id(date) method.

It is solved.

Thank you all

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
März 24
3098
2
Nov. 23
2505
4
Mai 25
2552
2
Mai 25
5930
1
März 25
1705