Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
4 Ответы
18116 Представления

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?

Аватар
Отменить
Лучший ответ

Just like every other model.

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

Аватар
Отменить
Автор

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'

Related Posts Ответы Просмотры Активность
0
сент. 19
3733
1
июн. 24
442
0
июл. 22
3735
1
февр. 16
4944
6
дек. 23
30702