diff --git a/trytond/trytond/_safe_genshi.py b/trytond/trytond/_safe_genshi.py index 8db061e32b..1278f49d63 100644 --- a/trytond/trytond/_safe_genshi.py +++ b/trytond/trytond/_safe_genshi.py @@ -10,7 +10,8 @@ class _SafeASTTransformer(ASTTransformer): def visit_Attribute(self, node): if (node.attr.startswith('_') - and node.attr not in {'__class__', '__name__'}): + and node.attr not in { + '__class__', '__name__', '__url__', '__href__'}): raise ValueError(f"invalid attribute {node.attr!r}") return super().visit_Attribute(node)