تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6551 أدوات العرض

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مايو 24
8090
0
مايو 21
2931
1
فبراير 19
2664
0
ديسمبر 18
2895
0
يوليو 18
3248