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

I have created a custom modules which implement a wizard that  have a many2one relation with a project.task record. My problem is that if this wizard is called it then refer to a task id, so if a user try to delete this task he will see an error until the system decide to purge transient records from the database. Is there some solution to this problem?

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

It seems that you have to set the parameter ondelete="cascade"  for the many2one fields declared in the wizard that refer to regular models.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
сент. 24
13342
2
дек. 21
7419
1
авг. 20
8699
2
нояб. 24
14292
4
сент. 19
7679