Do not fail to update chart if parent template is no more a template

This commit is contained in:
Cédric Krier committed 2023-04-26 11:26:08 +02:00
1 parent 3a15e586ca
commit 87f1cf42da
1 file changed
+2 -2
+2 -2
View File
@@ -434,8 +434,8 @@ class Type(
if child.template:
if not child.template_override:
if child.template.parent:
parent = template2type[
child.template.parent.id]
parent = template2type.get(
child.template.parent.id)
else:
parent = None
old_parent = (