diff --git a/src/util/records.py b/src/util/records.py index be735fba..6161aa27 100644 --- a/src/util/records.py +++ b/src/util/records.py @@ -346,6 +346,7 @@ def remove_action(cr, xml_id=None, action_id=None): FROM ir_model_fields WHERE relation = 'ir.actions.actions' AND on_delete IN ( 'cascade', 'set null' ) + AND ttype = 'many2one' """ )