Italy mailing list archives

italy@odoo-community.org

Avatar

Re: Errore importazione file fattura elettronica

by
o.dini
- 09/01/2019 13:17:13
Il 09/01/19 12:12, Lorenzo Battistini ha scritto:
?
Si posso provare.. ma c'e' un modo per farlo con git? o devo fare le modifiche a mano? (scusa non sono molto pratico di github)
Che versioni usi?

Uso la versione di odoo 10 .. perche' nella 12 non era presente il modulo ddt





On Wed, 9 Jan 2019 at 11:26, Omar Dini <o.dini@intellis.it> wrote:


 <DatiBeniServizi>
            <DettaglioLinee>
                <NumeroLinea>1</NumeroLinea>
                <CodiceArticolo>
                    <CodiceTipo>CodArtCli</CodiceTipo>
                    <CodiceValore> </CodiceValore>
                </CodiceArticolo>
                <Descrizione>Onorario amministrazione personale dipendente relativa al periodo ottobre/2018 - dicembre/2018  13.ma,DURC ,invio UNIEMENS. inps e spese varie</Descrizione>
                <Quantita>1.00</Quantita>


Il 09/01/19 10:32, Lorenzo Battistini ha scritto:
Potresti riportare la parte, o le parti, di XML contenenti gli elementi CodiceTipo e CodiceValore?


On Wed, 9 Jan 2019 at 09:16, Omar Dini <o.dini@intellis.it> wrote:
Buongiorno,

Oggi per la prima volta ho avuto il seguente errore nell'importazione di
una fattura elettronica in dormato xml:


Traceback (most recent call last): File
"/usr/lib/python2.7/dist-packages/odoo/http.py", line 642, in
_handle_exception return super(JsonRequest,
self)._handle_exception(exception) File
"/usr/lib/python2.7/dist-packages/odoo/http.py", line 684, in dispatch
result = self._call_function(**self.params) File
"/usr/lib/python2.7/dist-packages/odoo/http.py", line 334, in
_call_function return checked_call(self.db, *args, **kwargs) File
"/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 101, in
wrapper return f(dbname, *args, **kwargs) File
"/usr/lib/python2.7/dist-packages/odoo/http.py", line 327, in
checked_call result = self.endpoint(*a, **kw) File
"/usr/lib/python2.7/dist-packages/odoo/http.py", line 942, in __call__
return self.method(*args, **kw) File
"/usr/lib/python2.7/dist-packages/odoo/http.py", line 507, in
response_wrap response = f(*args, **kw) File
"/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py",
line 895, in call_kw return self._call_kw(model, method, args, kwargs)
File
"/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py",
line 887, in _call_kw return call_kw(request.env[model], method, args,
kwargs) File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 687,
in call_kw return call_kw_model(method, model, args, kwargs) File
"/usr/lib/python2.7/dist-packages/odoo/api.py", line 672, in
call_kw_model result = method(recs, *args, **kwargs) File
"/usr/lib/python2.7/dist-packages/odoo/addons/mail/models/mail_thread.py",
line 228, in create thread = super(MailThread, self).create(values) File
"/usr/lib/python2.7/dist-packages/odoo/models.py", line 3847, in create
record = self.browse(self._create(old_vals)) File
"/usr/lib/python2.7/dist-packages/odoo/models.py", line 4006, in _create
self.recompute() File "/usr/lib/python2.7/dist-packages/odoo/models.py",
line 5341, in recompute vals = rec._convert_to_write({n: rec[n] for n in
ns}) File "/usr/lib/python2.7/dist-packages/odoo/models.py", line 5341,
in vals = rec._convert_to_write({n: rec[n] for n in ns}) File
"/usr/lib/python2.7/dist-packages/odoo/models.py", line 5237, in
__getitem__ return self._fields[key].__get__(self, type(self)) File
"/usr/lib/python2.7/dist-packages/odoo/fields.py", line 915, in __get__
self.determine_value(record) File
"/usr/lib/python2.7/dist-packages/odoo/fields.py", line 1001, in
determine_value self.compute_value(recs) File
"/usr/lib/python2.7/dist-packages/odoo/fields.py", line 981, in
compute_value self._compute_value(records) File
"/usr/lib/python2.7/dist-packages/odoo/fields.py", line 972, in
_compute_value getattr(records, self.compute)() File
"/etc/odoo/l10n-italy/l10n_it_fatturapa_in/models/attachment.py", line
42, in _compute_xml_data fatt =
self.env['wizard.import.fatturapa'].get_invoice_obj(att) File
"/etc/odoo/l10n-italy/l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py",
line 1231, in get_invoice_obj return
fatturapa_v_1_2.CreateFromDocument(xml_string) File
"/etc/odoo/l10n-italy/l10n_it_fatturapa/bindings/fatturapa_v_1_2.py",
line 84, in CreateFromDocument saxer.parse(io.BytesIO(xmld)) File
"/usr/lib/python2.7/xml/sax/expatreader.py", line 110, in parse
xmlreader.IncrementalParser.parse(self, source) File
"/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer) File "/usr/lib/python2.7/xml/sax/expatreader.py", line
213, in feed self._parser.Parse(data, isFinal) File
"/usr/lib/python2.7/xml/sax/expatreader.py", line 365, in end_element_ns
self._cont_handler.endElementNS(pair, None) File
"/usr/lib/python2.7/dist-packages/pyxb/binding/saxer.py", line 388, in
endElementNS binding_object = this_state.endBindingElement() File
"/usr/lib/python2.7/dist-packages/pyxb/binding/saxer.py", line 226, in
endBindingElement self.__constructElement(self.__delayedConstructor,
self.__attributes, args) File
"/usr/lib/python2.7/dist-packages/pyxb/binding/saxer.py", line 116, in
__constructElement self.__bindingInstance = new_object_factory(*content,
**kw) File "/usr/lib/python2.7/dist-packages/pyxb/binding/basis.py",
line 1614, in __call__ rv = self.typeDefinition().Factory(*args, **kw)
File "/usr/lib/python2.7/dist-packages/pyxb/binding/basis.py", line 305,
in Factory rv = cls._DynamicCreate(*args, **kw) File
"/usr/lib/python2.7/dist-packages/pyxb/binding/basis.py", line 691, in
_DynamicCreate return ctor(*args, **kw) File
"/usr/lib/python2.7/dist-packages/pyxb/binding/basis.py", line 943, in
__init__ self.xsdConstraintsOK(location) File
"/usr/lib/python2.7/dist-packages/pyxb/binding/basis.py", line 1069, in
xsdConstraintsOK return self.XsdConstraintsOK(self, location) File
"/usr/lib/python2.7/dist-packages/pyxb/binding/basis.py", line 1064, in
XsdConstraintsOK raise pyxb.SimpleFacetValueError(cls, value, f,
location) SimpleFacetValueError: Type
{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}String35Type
pattern constraint violated by value

se invece provo ad inportare il file p7m come mi e' arrivato (senza
togliere la firma) ricevo questo errore:

File XML firmato None.


Premetto che e' la prima fattura ricevuta da questo fornitore.. con
altri fornitori non ho avuto problemi..

Sapreste indicarmi dove cercare il problema?

Grazie





-- 
Omar Dini 
INTELLIS S.r.l.
via del Prato, 4
50065 Pontassieve (FI)

tel:   0558367477 / 0557478209
fax:   0553984968
email: o.dini@intellis.it
skype: omardini

Le informazioni contenute nel presente messaggio possono essere riservate. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita, 
sia ai sensi dell'art.616 c.p., che ai sensi del D.Lgs n. 196/2003. 

Qualora Lei non fosse la persona cui il presente messaggio è destinato, è invitata a non diffonderlo, e ad eliminarlo, dandone gentilmente comunicazione al mittente.

_______________________________________________
Mailing-List: https://odoo-community.org/groups/italy-53
Post to: mailto:italy@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe



--
Lorenzo Battistini
Tel (CH): +41 91 210 23 40
Tel (IT): +39 0331 158 7090 

_______________________________________________
Mailing-List: https://odoo-community.org/groups/italy-53
Post to: mailto:italy@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/italy-53
Post to: mailto:italy@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe



--
Lorenzo Battistini
Tel (CH): +41 91 210 23 40
Tel (IT): +39 0331 158 7090 

_______________________________________________
Mailing-List: https://odoo-community.org/groups/italy-53
Post to: mailto:italy@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference