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

Hi everyone,

   What would the right way to add odoo fields as prefix in sequence? I want to use Internal Reference field (ref; res_partner) as prefix to order number sequence code, so i know straight ahead who is the customer by looking at order number. 

Thanks in advance.

아바타
취소

Is this possible in odoo 16 Saas without customization

작성자 베스트 답변

Sorry, took me a while to come back to this. Which file should I be working on? Sorry, i'm new to odoo. Where does it keep sequence setting for sales orders?

ok, i found file ir_sequence.py, where i should add my field (by the way, field i want to show in sequence is "doc.partner_id.ref". How can i define it and make it work as, let say %(ref) in my sequence settings? Thanks!

아바타
취소
베스트 답변

In create() method you can append it

아바타
취소
관련 게시물 답글 화면 활동
1
5월 25
2514
1
9월 24
1448
1
6월 23
2417
1
4월 23
11534
1
6월 22
2778