Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2457 Представления

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'
Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
сент. 21
2205
0
авг. 21
3133
1
янв. 24
1749
1
дек. 23
3164
2
сент. 24
5785