Skip to Content
Menú
This question has been flagged
1 Respondre
6499 Vistes

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 

Avatar
Descartar
Best Answer

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.

Avatar
Descartar
Autor

Thanks, Mitul Shingala

Related Posts Respostes Vistes Activitat
2
de maig 24
8039
0
de maig 21
2880
1
de febr. 19
2636
0
de des. 18
2883
0
de jul. 18
3225