Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/odoo/http.py", line 651, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3.7/site-packages/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3.7/site-packages/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/usr/lib/python3.7/site-packages/odoo/http.py", line 693, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3.7/site-packages/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3.7/site-packages/odoo/http.py", line 937, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3.7/site-packages/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 938, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 926, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3.7/site-packages/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3.7/site-packages/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/odoo/addons/l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py", line 1246, in importFatturaPA
fatt = self.get_invoice_obj(fatturapa_attachment)
File "/usr/lib/python3.7/site-packages/odoo/addons/l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py", line 1229, in get_invoice_obj
return fatturapa_v_1_2.CreateFromDocument(xml_string)
File "/usr/lib/python3.7/site-packages/odoo/addons/l10n_it_fatturapa/bindings/fatturapa_v_1_2.py", line 83, in CreateFromDocument
saxer.parse(io.BytesIO(xmld))
File "/usr/lib64/python3.7/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib64/python3.7/xml/sax/xmlreader.py", line 125, in parse
self.feed(buffer)
File "/usr/lib64/python3.7/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
File "/home/iurt/rpmbuild/BUILD/Python-3.7.9/Modules/pyexpat.c", line 471, in EndElement
File "/usr/lib64/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/usr/lib/python3.7/site-packages/pyxb/binding/saxer.py", line 388, in endElementNS
binding_object = this_state.endBindingElement()
File "/usr/lib/python3.7/site-packages/pyxb/binding/saxer.py", line 226, in endBindingElement
self.__constructElement(self.__delayedConstructor, self.__attributes, args)
File "/usr/lib/python3.7/site-packages/pyxb/binding/saxer.py", line 116, in __constructElement
self.__bindingInstance = new_object_factory(*content, **kw)
File "/usr/lib/python3.7/site-packages/pyxb/binding/basis.py", line 1614, in __call__
rv = self.typeDefinition().Factory(*args, **kw)
File "/usr/lib/python3.7/site-packages/pyxb/binding/basis.py", line 305, in Factory
rv = cls._DynamicCreate(*args, **kw)
File "/usr/lib/python3.7/site-packages/pyxb/binding/basis.py", line 691, in _DynamicCreate
return ctor(*args, **kw)
File "/usr/lib/python3.7/site-packages/pyxb/binding/basis.py", line 943, in __init__
self.xsdConstraintsOK(location)
File "/usr/lib/python3.7/site-packages/pyxb/binding/basis.py", line 1069, in xsdConstraintsOK
return self.XsdConstraintsOK(self, location)
File "/usr/lib/python3.7/site-packages/pyxb/binding/basis.py", line 1064, in XsdConstraintsOK
raise pyxb.SimpleFacetValueError(cls, value, f, location)
pyxb.exceptions_.SimpleFacetValueError: Type {http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}NaturaType enumeration constraint violated by value N2.2
Qualche consiglio?