コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2479 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
9月 21
2239
0
8月 21
3159
1
1月 24
1774
1
12月 23
3181
2
9月 24
5810