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

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

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

Did you find a solution to this?

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

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.

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

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

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ส.ค. 25
2460
1
พ.ค. 25
2581
1
เม.ย. 25
3543
1
เม.ย. 25
4389
1
เม.ย. 25
1852