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

i'm using ODOO8, and working with : 


crane.work.order
contains
tasks_id: that is a One2many(crane.task)


 

& crane.task
contains
equipment_id=Many2one(crane.equipment)


so my question is how can i convert tasks_id till i can have 1 workorder with 1 task and 1 equipment, should i override the tasks_id field or create a new one ? -Sorry i'm an odoo beginner- 

아바타
취소
베스트 답변

There is no relation 1 to one in odoo, but you can do constraint in tasks_id field , that restrict user with one equipment

아바타
취소
관련 게시물 답글 화면 활동
1
3월 18
6696
2
12월 22
15199
1
11월 21
5285
0
1월 21
2552
8
5월 20
8182