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

How to create and write multiple records by overriding create and write method of odoo12 ??

아바타
취소
베스트 답변

Create method uses api.model and due to that you can only create one record at a time.

Write method uses api.multi and due that you can update multiple records at a time.

아바타
취소
작성자

while i am using @api.multi and trying to write multiple record at a time ,then it trows singleton error and suggest to use ensure_one().

작성자

You are right for the above answer but somehow i want to write multiple records at a time.So please suggest

You can create a wizard for that and based on some conditions search your records and write the value to them.

작성자

Is there any suggestions for this type of solutions please sir ..and thank you very much

관련 게시물 답글 화면 활동
2
1월 16
35752
2
8월 19
4778
0
9월 20
37
1
8월 20
4811
1
4월 20
5354