Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2443 Widoki

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'
Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 21
2183
0
sie 21
3103
1
sty 24
1703
1
gru 23
3142
2
wrz 24
5714