Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4590 มุมมอง

Hello everybody:

i use this sequence  for purchase Order :PO%(y)sA%(range_month)s

But the number do not restart when month change for exemple i have

PO21A0380 and the next is PO21A0481 instead of PO21A0401




Any help welcome.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello William!

To achieve your desired outcome, which means, reset the sequence when month passes, you must use subsequences per date_range, which implies creating a subsequence per month.

However, there is a module by OCA that may suit your needs. Please see the following link:

https://github.com/OCA/server-ux/tree/13.0/sequence_reset_period

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
sequence prefix. แก้ไขแล้ว
3
ก.ย. 23
4200
Multiple sale order sequences แก้ไขแล้ว
2
มี.ค. 18
5485
0
ต.ค. 24
1264
Odoo Sequence next_by_code returns False แก้ไขแล้ว
3
ก.พ. 24
11118
Odoo15 Product Variant display order แก้ไขแล้ว
1
พ.ย. 23
1537