Skip to Content
Menu
This question has been flagged
1 Reply
1652 Views

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'
Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
0
Sep 21
1287
0
Aug 21
2069
1
Jan 24
595
1
Dec 23
2248
2
Sep 24
4085