Sì, adesso peròp ottengo un secondo errore che non capisco, mi sempra che il codice nazione sia ok sia per i clienti che per l'azienda.
Errore:
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\l10n_it_fatturapa_out\wizard\wizard_export_fatturapa.py", line 809, in exportFatturaPA
company, partner, fatturapa)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\l10n_it_fatturapa_out\wizard\wizard_export_fatturapa.py", line 753, in setFatturaElettronicaHeader
self.setCessionarioCommittente(partner, fatturapa)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\l10n_it_fatturapa_out\wizard\wizard_export_fatturapa.py", line 482, in setCessionarioCommittente
self._setDatiAnagraficiCessionario(partner, fatturapa)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\l10n_it_fatturapa_out\wizard\wizard_export_fatturapa.py", line 367, in _setDatiAnagraficiCessionario
IdPaese=partner.vat[0:2], IdCodice=partner.vat[2:])
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\pyxb\binding\basis.py", line 2098, in init
fu.set(self, iv)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\pyxb\binding\content.py", line 1043, in set
value = self.__elementBinding.compatibleValue(value, is_plural=self.isPlural())
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\pyxb\binding\basis.py", line 1643, in compatibleValue
return self.typeDefinition()._CompatibleValue(value, **kw)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\pyxb\binding\basis.py", line 385, in CompatibleValue
return cls(value)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\pyxb\binding\basis.py", line 943, in init
self.xsdConstraintsOK(location)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\pyxb\binding\basis.py", line 1069, in xsdConstraintsOK
return self.XsdConstraintsOK(self, location)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\pyxb\binding\basis.py", line 1064, in XsdConstraintsOK
raise pyxb.SimpleFacetValueError(cls, value, f, location)
pyxb.exceptions.SimpleFacetValueError: Type {
ivaservizi.agenziaentrate.gov.it/docs/xs...ure/v1.2}NazioneType pattern constraint violated by value 09
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 651, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 693, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 937, in call
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 515, in response_wrap
response = f(*args, **kw)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\web\controllers\main.py", line 938, in call_button
action = self._call_kw(model, method, args, {})
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\web\controllers\main.py", line 926, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\l10n_it_fatturapa_out\wizard\wizard_export_fatturapa.py", line 829, in exportFatturaPA
except (SimpleFacetValueError, SimpleTypeValueError) as e:
NameError: name 'SimpleFacetValueError' is not defined