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

I have many branch in a company. At time of sale order creation sequence number should be generated according to the branch ie, instead SO as preffix it should be branch code first followed by number 

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

hello

you can achieve it using calling the different sequence based on the branch.

you can see one example into customer invoice and vendor bills. based on the invoice type the sequence is generate. so as same way you can do it into your code.

for code you can see sale.order object's create method. i hope this will helps you.

อวตาร
ละทิ้ง
ผู้เขียน

Thanks, Mitul Shingala

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 24
8113
0
พ.ค. 21
2942
Odoo11 Community: Salary แก้ไขแล้ว
1
ก.พ. 19
2670
0
ธ.ค. 18
2901
0
ก.ค. 18
3253