Skip to Content
Menu
This question has been flagged
1 Atsakyti
6650 Rodiniai

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?

Portretas
Atmesti
Autorius Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugp. 25
7525
2
rugs. 24
13399
1
rugp. 20
8731
2
lapkr. 24
14426
4
rugs. 19
7723