diff --git a/odoo_module_migrate/migration_scripts/migrate_140_150.py b/odoo_module_migrate/migration_scripts/migrate_140_150.py index 0c960b5c..6cad91de 100644 --- a/odoo_module_migrate/migration_scripts/migrate_140_150.py +++ b/odoo_module_migrate/migration_scripts/migrate_140_150.py @@ -35,7 +35,7 @@ def remove_node_from_xml(record_node, node): if node.getchildren(): to_remove = False if to_remove: - parent = node.getparent() or record_node + parent = node.getparent() if node.getparent() is not None else record_node parent.remove(node)