跳至內容
選單
此問題已被標幟
1 回覆
2629 瀏覽次數

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


頭像
捨棄
作者 最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 24
3032
2
11月 23
2451
4
5月 25
2422
2
5月 25
5751
1
3月 25
1605