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?
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
8575
มุมมอง
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 | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
1
ส.ค. 25
|
9909 | ||
|
|
2
ก.ย. 24
|
15937 | ||
|
|
1
ส.ค. 20
|
10892 | ||
|
|
2
พ.ย. 24
|
18206 | ||
|
|
4
ก.ย. 19
|
10138 |