Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncing from upstream OCA/stock-logistics-workflow (16.0) #1429

Merged
merged 3 commits into from
Feb 27, 2025

Conversation

bt-admin
Copy link

bt_gitbot

victoralmau and others added 3 commits February 26, 2025 09:38
Since odoo/odoo@d0342c8, the default existing company is not getting a
CoA automatically, provoking than the current tests fail with the error:

odoo.exceptions.UserError: No journal could be found in company My Company (San Francisco) for any of those types: sale

Thus, we put tests post-install for being sure localization modules are
installed, the same as AccountTestInvoicingCommon does, but we don't
inherit from it, as it creates an overhead creating 2 new companies and
loading their CoA and some more stuff, while we don't need all of that.

Besides, if you don't have `l10n_generic_coa` installed, you can't use
another CoA (like `l10n_es`) easily, so we put little code to select the
first available CoA.
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 16.0 label Feb 27, 2025
@bt-admin bt-admin merged commit 81fe70d into brain-tec:16.0 Feb 27, 2025
9 checks passed
Copy link

codecov bot commented Feb 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.30%. Comparing base (12cb722) to head (ff7ebd4).
Report is 231 commits behind head on 16.0.

Additional details and impacted files
@@           Coverage Diff           @@
##             16.0    #1429   +/-   ##
=======================================
  Coverage   71.30%   71.30%           
=======================================
  Files          15       15           
  Lines         223      223           
  Branches       30       30           
=======================================
  Hits          159      159           
  Misses         59       59           
  Partials        5        5           

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

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