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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
6611
瀏覽次數
It seems that you have to set the parameter ondelete="cascade" for the many2one fields declared in the wizard that refer to regular models.
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
2
9月 24
|
13357 | ||
|
2
12月 21
|
7436 | ||
|
1
8月 20
|
8710 | ||
|
2
11月 24
|
14313 | ||
|
4
9月 19
|
7691 |