Skip to Content
Menu
This question has been flagged
1 Reply
2543 Views

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- 

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
1
Mar 18
4996
0
Jul 24
193
2
Dec 22
12876
1
Nov 21
3147
0
Jan 21
1072