跳至内容
菜单
此问题已终结
4 回复
5166 查看

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

形象
丢弃
相关帖文 回复 查看 活动
3
8月 25
2612
1
5月 25
2645
1
4月 25
3635
1
4月 25
4492
1
4月 25
1961