跳至內容
選單
此問題已被標幟
1 回覆
3450 瀏覽次數

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
6352
2
12月 22
14787
1
11月 21
4907
0
1月 21
2272
8
5月 20
7784