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

I need to set unique sale order sequence prefixes based on each customer in odoo V16

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

Did you find a solution to this?

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

Hi

Currently, when a record is created in Odoo, the sale order sequence is assigned. You can inherit the sale.order, override the button's confirm action, and write the code for the sequence's generation if you wish to alter how the sequence is generated when the sale order is confirmed.

By modifying the create method in the sale order model, you can examine how the sequence is generated during creation.

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

Hi,

To set this, go to settings -> Technical - > Sequences -> search for sale.order and here you can set sequence as per your need , We can set by day, month , year, time etc.


Regards

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

hello @Cybrosys,

​I know how to set sequence numbers for sale orders but I need to set different sequence number prefixes for each customer sale order like, if I create a sale order for Deco Addict I need that sequence prefix as "deco/0001", could you suggest a way?

Thanks & Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 8 25
2447
1
thg 5 25
2577
1
thg 4 25
3539
1
thg 4 25
4385
1
thg 4 25
1850