mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-18 05:52:07 +02:00
9 lines
356 B
Python
9 lines
356 B
Python
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
|