콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
5263 화면

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
2839
1
5월 25
2777
1
4월 25
3743
1
4월 25
4612
1
4월 25
2047