Skip to content

Syncing from upstream OCA/rma (18.0)#446

Merged
bt-admin merged 11 commits into
brain-tec:18.0from
OCA:18.0
May 27, 2026
Merged

Syncing from upstream OCA/rma (18.0)#446
bt-admin merged 11 commits into
brain-tec:18.0from
OCA:18.0

Conversation

@bt-admin
Copy link
Copy Markdown

bt_gitbot

sbejaoui and others added 11 commits November 20, 2025 11:09
In many business flows, a returned product must be linked back to the original
sale in order to validate warranty conditions, refunds or exchanges.

Manually searching the correct sale order for each RMA is error-prone and time
consuming, especially when:

- the customer has multiple past orders
- the product was delivered in several partial shipments
- the return period depends on the type of RMA operation (refund, warranty, lifetime, etc.)

This module introduces an **automatic matching engine** that links RMA records
to the correct delivery moves of the original sale order, based on delivered
quantities and eligibility period.

It avoids manual reconciliation and provides a deterministic, auditable match.

refs: #473

[IMP] rma_sale_auto_detect: allow user to suggest the sale order in order to compute the sale line
Currently translated at 96.0% (389 of 405 strings)

Translation: rma-18.0/rma-18.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-18-0/rma-18-0-rma/es/
Signed-off-by sbejaoui
@bt-admin bt-admin added the 18.0 label May 27, 2026
@bt-admin bt-admin merged commit fe44a89 into brain-tec:18.0 May 27, 2026
4 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

❌ Patch coverage is 97.15100% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.24%. Comparing base (76a7366) to head (4d24cee).
⚠️ Report is 65 commits behind head on 18.0.

Files with missing lines Patch % Lines
rma_sale_auto_detect/models/rma.py 93.91% 4 Missing and 3 partials ⚠️
rma_sale_auto_detect/models/stock_move.py 75.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             18.0     #446      +/-   ##
==========================================
+ Coverage   91.87%   92.24%   +0.36%     
==========================================
  Files         139      147       +8     
  Lines        4704     5055     +351     
  Branches      402      422      +20     
==========================================
+ Hits         4322     4663     +341     
- Misses        309      315       +6     
- Partials       73       77       +4     

☔ View full report in Codecov by Sentry.
📢 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