odoo/odoo#192706
Created by fw-bot
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:master-18.0-sentry-6056586239-Notnullviolation-error-aamo-yhvk-fw
- head
- 16aa18d1b2bed05f54ffd5794c53ad5c29d3b044
- merged
- 9 months ago by Accounting, Antoine Dupuis (andu)
odoo/odoo | |
---|---|
18.0 | #192459 |
saas-18.1 | #192682 |
saas-18.2 | |
saas-18.3 | |
saas-18.4 | |
19.0 | |
master | #192706 |
[FW][FIX] account_edi_ubl_cii: default company currency for currency not found
This error occurs when uploading a factur-x.xml
file that lacks currency information or when the factur-x.xml
file we generate does not include any currency.
Steps to reproduce:
- Install
account_edi_ubl_cii
module - Invoicing > Customers > Invoices
- Click
Upload
button and upload file
Traceback:
NotNullViolation: null value in column "currency_id" of relation "account_move_line" violates not-null constraint DETAIL: Failing row contains (50, 50, 9, 1, 125, 100, 205, null, 56, null, null, null, null, null, null, null, null, null, null, null, 2, 2, null, null, null, NEWS9141525, null, product, null, null, null, null, null, 0.00, 0.00, 0.00, 0.0, null, null, null, 1.00, 109.72, null, null, 0.00000000000000000000000000000000000000000000000000000000000000..., null, null, null, null, null, 2025-01-02 01:03:08.880424, 2025-01-02 01:03:08.880424, null, null, null, null, null, null, null, null, null).
This commit resolves the issue by adding the default company currency when no currency is found in the file.
sentry-6056586239
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: #192459