İçereği Atla
Menü
Bu soru işaretlendi
4 Cevaplar
18075 Görünümler

When defining a one2many field on a wizard (TransientModel), you need to specify the column of the related model that points to the wizard.

How should I do this in case of a orm.TransientModel?

Avatar
Vazgeç
En İyi Yanıt

Just like every other model.

See the example of wizard.select.move.template and wizard.select.move.template.line

Avatar
Vazgeç
Üretici

Thanks Lorenzo. But don't you think this foreign key on the 'other' object is strange? What happens if the wizard instance record is removed? Then this foreign key 'template_id' is invalid?

It depends on what referential action you set as 'ondelete'

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eyl 19
3722
1
Haz 24
442
0
Tem 22
3720
1
Şub 16
4912
6
Ara 23
30676