Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3952 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
mars 18
7048
2
déc. 22
15490
1
nov. 21
5567
0
janv. 21
2830
8
mai 20
8528