Skip to content

Commit ca11999

Browse files
committed
Improve assets migration
1 parent 0d045c2 commit ca11999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

odoo_module_migrate/migration_scripts/migrate_140_150.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def remove_node_from_xml(record_node, node):
3535
if node.getchildren():
3636
to_remove = False
3737
if to_remove:
38-
parent = node.getparent() or record_node
38+
parent = node.getparent() if node.getparent() is not None else record_node
3939
parent.remove(node)
4040

4141

0 commit comments

Comments
 (0)