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

i have created one2many field in custom add-ons and link it with other model

res_id = fields.One2many('production.resources', 'resources_id', "Resources")
the field work good but when i try to add line it show a popup to create new record instead of show already created records in the other model as selection?
아바타
취소

Is it possible that you really need a Many2one or a Many2many instead of a One2many.
In One2many you only get records that are created especially for the parent record. like eg: invoice and invoice-lines.
If in your example one product can have more resources and one resource can be a resource for more products you need m2m.

작성자

its works fine with many2many but i have custom float field in need to add it per line in the many2many lines is that possible and how ?

관련 게시물 답글 화면 활동
1
5월 21
5082
1
10월 19
5347
4
3월 15
10661
3
5월 25
2386
1
4월 25
1816