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

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.

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

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
sequence prefix. Đã xử lý
3
thg 9 23
4102
2
thg 3 18
5459
0
thg 10 24
1229
3
thg 2 24
11039
1
thg 11 23
1504