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

Hi,

I'm using odoo 14 and I want to build a form that can create multiple records at the same time.

Is there any way I can do that?

아바타
취소
베스트 답변

Hi,

Need to created records in the same model ? If so adding a one2many inside the form will helps ?

If you need to create records in multiple models, better to override the create method of a model and then create records in the another models from the create function.

Reference:

1. One2many:  https://www.youtube.com/watch?v=QOyFQOlroFc&t=54s

2. Override Create Method: https://www.youtube.com/watch?v=_-fs_NBeOLI

3. Delegation Inheritance: https://www.youtube.com/watch?v=CkUulwB6k3o

Thanks

아바타
취소
작성자

Thanks for your Answer Niyas, I needed to create the records in the same model, but I couldn't find the way so I've created another model with a one2many field and now I have a form to create multiple records for my original model, but I'm not really happy with this solution.

Thanks for the answers and the references!

관련 게시물 답글 화면 활동
0
7월 21
1377
0
5월 25
12
2
1월 25
2503
1
12월 24
6191
1
11월 24
2648