Skip to content

Syncing from upstream OCA/edi-framework (19.0)#164

Merged
bt-admin merged 5 commits into
brain-tec:19.0from
OCA:19.0
Jun 6, 2026
Merged

Syncing from upstream OCA/edi-framework (19.0)#164
bt-admin merged 5 commits into
brain-tec:19.0from
OCA:19.0

Conversation

@bt-admin
Copy link
Copy Markdown

@bt-admin bt-admin commented Jun 6, 2026

bt_gitbot

mymage and others added 5 commits June 5, 2026 09:46
Currently translated at 100.0% (286 of 286 strings)

Translation: edi-framework-19.0/edi-framework-19.0-edi_core_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-framework-19-0/edi-framework-19-0-edi_core_oca/it/
Currently translated at 100.0% (56 of 56 strings)

Translation: edi-framework-19.0/edi-framework-19.0-edi_endpoint_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-framework-19-0/edi-framework-19-0-edi_endpoint_oca/it/
When using edi_notification_oca, EDI exchanges that failed during send,
receive, or validation did not trigger any notification, leaving errors
unnoticed and requiring manual detection.

The backend only emitted "on_edi_exchange_error" on the process error
path. Other error paths updated the state and posted chatter messages
but did not fire the event.

This change ensures the error event is emitted on all error transitions:

exchange_send -> _notify_error("send_ko")

exchange_receive -> _notify_error("receive_ko", "validate_ko")

exchange_generate -> _notify_error("validate_ko")

Calls are guarded by state changes to avoid duplicate notifications.
Redundant chatter messages are removed since _notify_error already
handles logging and event emission.
Signed-off-by simahawk
@bt-admin bt-admin added the 19.0 label Jun 6, 2026
@bt-admin bt-admin merged commit db1d026 into brain-tec:19.0 Jun 6, 2026
4 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 6, 2026

Codecov Report

❌ Patch coverage is 97.36842% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 85.32%. Comparing base (8f7eb91) to head (67c4e88).
⚠️ Report is 44 commits behind head on 19.0.

Files with missing lines Patch % Lines
edi_core_oca/models/edi_backend.py 91.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             19.0     #164      +/-   ##
==========================================
+ Coverage   84.91%   85.32%   +0.41%     
==========================================
  Files         107      112       +5     
  Lines        4321     4449     +128     
  Branches      272      279       +7     
==========================================
+ Hits         3669     3796     +127     
  Misses        576      576              
- Partials       76       77       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants