Odoo18-Base/odoo/_monkeypatches/zeep.py

10 lines
356 B
Python
Raw Permalink Normal View History

2025-01-06 10:57:38 +07:00
from zeep.xsd import visitor
from zeep.xsd.const import xsd_ns
def patch_zeep():
# see https://github.com/mvantellingen/python-zeep/issues/1185
if visitor.tags.notation.localname != 'notation':
visitor.tags.notation = xsd_ns('notation')
visitor.SchemaVisitor.visitors[visitor.tags.notation] = visitor.SchemaVisitor.visit_notation