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

I would like to have a serial number for 
AssemblyA
AssemblyB
etc    

I would like the serial number to be something along the lines of:

AssemblyA_0001, AssemblyA_0002
AssemblyB_0001, AssemblyB_0002​

I have figured out how to track serial numbers at a global scale, but can not seem to find out anything about how to break it down per product.

Edit for clarification:
I would like the sequence string to add the prefix of "%product.id" and keep track of which serial number is next for that product.

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

@ricardo Agreed that would be awesome. I am guessing that the only way that this will work is to create a sequence for each part that is tracked serially. Depending on the number of different parts that may be too cumbersome.I am going to try that and see if it works.​

Edit:

I did not go through the full exercise, but I think that if you set up a sequence for every type of part that has a serial number and then use an automated action on create that pulls in the prefix that you desire and concatenates it with the sequence next code then that would work.

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

Anyone still looking for an answer to this, I discovered it in V16 + V17.
Serial number sequences specific to products : Odoo (reddit.com)

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

There is a module of similar functionality for 10€ so you could just get one and modify the code if needed:
https://apps.odoo.com/apps/modules/12.0/sun_auto_generate_lotserial/

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

I am also looking for a solution to this, and I would like to know if, for example, Serial numbers  "Prefix" and "Suffix" could be imposed by product at the product form.

Thanks

Ricardo

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 15
6635
1
thg 8 24
12908
2
thg 3 15
7158
3
thg 6 25
1518
0
thg 9 24
5032