تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2707 أدوات العرض

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
مارس 24
3107
2
نوفمبر 23
2511
4
مايو 25
2568
2
مايو 25
5948
1
مارس 25
1714