Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6415 Lượt xem

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 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 23
4930
0
thg 1 23
94
1
thg 10 22
4252
0
thg 4 22
2801
2
thg 3 25
2864