Skip to content

Syncing from upstream OCA/contract (16.0)#959

Merged
bt-admin merged 5 commits into
brain-tec:16.0from
OCA:16.0
May 13, 2026
Merged

Syncing from upstream OCA/contract (16.0)#959
bt-admin merged 5 commits into
brain-tec:16.0from
OCA:16.0

Conversation

@bt-admin
Copy link
Copy Markdown

bt_gitbot

ivilata and others added 5 commits April 28, 2026 12:02
Mainly to avoid `ModuleNotFoundError: No module named 'pkg_resources'` when
running the `setuptools-odoo` pre-commit hook, as v3.1.8 was bitten by the
removal of `pkg_resources` from recent versions of `setuptools`.  This was
fixed by v1.38 of `oca-addons-repo-template` by updating `setuptools-odoo` to
v3.3.2.

See #1421 for more more information.
This includes a couple of `_do_auto_pay` tests which were missing a
`test_target_state` context (added in later commits), and a `_pay_invoice`
test which did not clear the invoice's residual amount.
So that they can pay refunds etc. no matter what account in arbitrarily chosen
when creating an invoice from a subscription.  This avoids "UserError: The
company bank account linked to this invoice is not trusted, please
double-check and trust it before confirming, or remove it" in
`TestSubscriptionOCA.test_subscription_oca_sub8_workflow`.
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 16.0 label May 13, 2026
@bt-admin bt-admin merged commit 4f2aee4 into brain-tec:16.0 May 13, 2026
4 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented May 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.18%. Comparing base (b0690de) to head (6268396).
⚠️ Report is 142 commits behind head on 16.0.

Additional details and impacted files
@@            Coverage Diff             @@
##             16.0     #959      +/-   ##
==========================================
+ Coverage   93.12%   93.18%   +0.06%     
==========================================
  Files         145      145              
  Lines        5075     5076       +1     
  Branches      439      439              
==========================================
+ Hits         4726     4730       +4     
+ Misses        279      277       -2     
+ Partials       70       69       -1     

☔ 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.

3 participants