Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3540 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 18
6435
Selecting items for one2many relation แก้ไขแล้ว
2
ธ.ค. 22
14925
1
พ.ย. 21
5051
0
ม.ค. 21
2348
8
พ.ค. 20
7934