Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2459 Vizualizări

When I confirm invoices from the subscription I'm getting this error. Is anyone has an idea how to fix this?

Traceback (most recent call last):
  File "/opt/ODOO/odoo14/odoo/http.py", line 639, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/ODOO/odoo14/odoo/http.py", line 315, in _handle_exception
    raise exception.with_traceback(None) from new_cause
ValueError: Wrong value for ir.attachment.type: 'out_invoice'
Imagine profil
Abandonează
Cel mai bun răspuns

Hello Aurel Balanay,

In 14.0 / addons / account_edi_facturx / models / account_edi_format.py python file,

There is method name: def _export_facturx

in that method Replace this code: 

return self.env ['ir.attachment']. create ({

            'name': xml_name,

            'datas': base64.encodebytes (xml_content),

            'mimetype': 'application / xml',

            'type': 'binary'

        })

Thanks...

For more information Contact us :-  https://kanakinfosystems.com/odoo-development-services

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
sept. 21
2205
0
aug. 21
3133
1
ian. 24
1756
1
dec. 23
3164
2
sept. 24
5789