Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2724 Näkymät

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
Hylkää
Tekijä Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
maalisk. 24
3125
2
marrask. 23
2517
4
toukok. 25
2578
2
toukok. 25
5956
1
maalisk. 25
1718