diff --git a/base_dynamic_list/__manifest__.py b/base_dynamic_list/__manifest__.py index 6d8e01e..816b9f0 100644 --- a/base_dynamic_list/__manifest__.py +++ b/base_dynamic_list/__manifest__.py @@ -27,7 +27,7 @@ To use it, you need to do 2 or 3 things : 1) Add an entry in the domain field and the object you selected: -domain = fields.Selection(selection_add=[('risk.type', "Risk Type")], ondelete={"risk.type": "set null"}) +domain = fields.Selection(selection_add=[('risk.type', "Risk Type")], ondelete={"risk.type": "cascade"}) 2) Add the many2one field on your object: