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

Hello, please help me.


i'm using odoo online and use odoo studio for create new apps. I have create new apps with name is INQUIRY.

1. Create Apps INQUIRY

2. On Setting (developer Mode) i create sequence Inquiry_seq with Number INQ-%(y)s%(month)s with sequence size is 6


How can i use that sequence while i create New Inquiry in Form like New Quotation, when i click new and Save it, the Sequence number has created.


Thank you.

아바타
취소
베스트 답변

Hi,
You can create an automated action in the db, which we will read the next sequence from the ir.sequence record and assign it to the field in your model.

Steps to do:
   * Create a record in ir.sequence table
   * Ensure base_automation module is installed in db
   * Create automated action, select model as needed model and trigger on create
   * Add python code to assign the sequence value for field

See the example shown here:  Generate Sequence Using Automated Action In Odoo



Thanks

아바타
취소
작성자 베스트 답변

Thank you all for the answer, the solution from youtube is great and can be a solution for my problems.


I'm sorry i cannot UPVOTE or make BEST Answer because notif your KARMA is not enough.

아바타
취소
베스트 답변

https://www.youtube.com/watch?v=LOK0jxYb1rM

아바타
취소
관련 게시물 답글 화면 활동
2
6월 24
2864
3
7월 25
2153
1
7월 25
530
1
6월 25
2668
2
5월 25
2139