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

i want to create sequence that will be 

CC-YearMonth-0001

CC-1907-0001        CC-2007-0001

CC-1907-0002        CC-2007-0001

........

.....

any help 

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

Hi Usman:

You can do this on the sequence definition. Activate developer mode. Go to Settings > Technical > Sequences and edit the sequence you need to change. There is a checkbox called ​Use subsequences per date_range. If you select this, you can specify the date range and the starting number (Next Number) for that date range.

อวตาร
ละทิ้ง
ผู้เขียน

i want to code in xml file any help ?

You will need to create records corresponding to your sequence in the ir.sequence.date_range model.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 23
5067
0
ม.ค. 23
94
1
ต.ค. 22
4335
0
เม.ย. 22
2879
Set an increment for customer reference แก้ไขแล้ว
2
มี.ค. 25
2952