Grazie mille per la risposta!
adesso mi da questo:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/OOOPS/http.py", line 651, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/OOOPS/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/OOOPS/tools/pycompat.py", line 87, in reraise
raise value
File "/usr/lib/python3/dist-packages/OOOPS/http.py", line 693, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/OOOPS/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/OOOPS/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/OOOPS/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/OOOPS/http.py", line 937, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/OOOPS/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/OOOPS/addons/web/controllers/main.py", line 938, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python3/dist-packages/OOOPS/addons/web/controllers/main.py", line 926, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/OOOPS/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/OOOPS/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/OOOPS/custom/addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py", line 828, in exportFatturaPA
attach = self.saveAttachment(fatturapa, number)
File "/opt/OOOPS/custom/addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py", line 108, in saveAttachment
'datas': base64.encodestring(fatturapa.toxml("UTF-8")),
File "/usr/local/lib/python3.5/dist-packages/pyxb/binding/basis.py", line 555, in toxml
dom = self.toDOM(bds, element_name=element_name)
File "/usr/local/lib/python3.5/dist-packages/pyxb/binding/basis.py", line 527, in toDOM
self._toDOM_csc(bds, element)
File "/usr/local/lib/python3.5/dist-packages/pyxb/binding/basis.py", line 2675, in _toDOM_csc
content.elementDeclaration.toDOM(dom_support, parent, content.value)
File "/usr/local/lib/python3.5/dist-packages/pyxb/binding/content.py", line 1101, in toDOM
value._toDOM_csc(dom_support, element)
File "/usr/local/lib/python3.5/dist-packages/pyxb/binding/basis.py", line 2675, in _toDOM_csc
content.elementDeclaration.toDOM(dom_support, parent, content.value)
File "/usr/local/lib/python3.5/dist-packages/pyxb/binding/content.py", line 1101, in toDOM
value._toDOM_csc(dom_support, element)
File "/usr/local/lib/python3.5/dist-packages/pyxb/binding/basis.py", line 2675, in _toDOM_csc
content.elementDeclaration.toDOM(dom_support, parent, content.value)
File "/usr/local/lib/python3.5/dist-packages/pyxb/binding/content.py", line 1101, in toDOM
value._toDOM_csc(dom_support, element)
File "/usr/local/lib/python3.5/dist-packages/pyxb/binding/basis.py", line 2661, in _toDOM_csc
order = self._validatedChildren()
File "/usr/local/lib/python3.5/dist-packages/pyxb/binding/basis.py", line 2188, in _validatedChildren
return self.__automatonConfiguration.sequencedChildren()
File "/usr/local/lib/python3.5/dist-packages/pyxb/binding/content.py", line 638, in sequencedChildren
cfg = self._diagnoseIncompleteContent(symbols, symbol_set)
File "/usr/local/lib/python3.5/dist-packages/pyxb/binding/content.py", line 493, in _diagnoseIncompleteContent
raise pyxb.IncompleteElementContentError(self.__instance, cfg, symbols, symbol_set)
pyxb.exceptions_.IncompleteElementContentError: (<OOOPS.addons.l10n_it_fatturapa.bindings.fatturapa_v_1_2.DatiAnagraficiRappresentanteType object at 0x7f81695eca20>, <pyxb.utils.fac.Configuration object at 0x7f8169fedf28>, [], {<pyxb.binding.content.ElementDeclaration object at 0x7f816e8160b8>: [<OOOPS.addons.l10n_it_fatturapa.bindings.fatturapa_v_1_2.AnagraficaType object at 0x7f81695ecb70>], <pyxb.binding.content.ElementDeclaration object at 0x7f816e816048>: })
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/OOOPS/http.py", line 651, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/OOOPS/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/OOOPS/tools/pycompat.py", line 87, in reraise
raise value
File "/usr/lib/python3/dist-packages/OOOPS/addons/base/ir/ir_http.py", line 208, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/OOOPS/http.py", line 709, in dispatch
return self._handle_exception(e)
File "/usr/lib/python3/dist-packages/OOOPS/http.py", line 671, in _handle_exception
return self._json_response(error=error)
File "/usr/lib/python3/dist-packages/OOOPS/http.py", line 639, in _json_response
body = json.dumps(response, default=ustr)
File "/usr/lib/python3.5/json/__init__.py", line 237, in dumps
**kw).encode(obj)
File "/usr/lib/python3.5/json/encoder.py", line 198, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode
return _iterencode(o, 0)
TypeError: keys must be a string
Sai darmi qualche direttiva...?
Grazie in anticipo