跳至内容
菜单
此问题已终结
1 回复
2529 查看

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
2966
2
11月 23
2383
4
5月 25
2144
2
5月 25
5484
1
3月 25
1384