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/bank-statement-import (16.0) #610

Merged
merged 6 commits into from
Feb 25, 2025

Conversation

bt-admin
Copy link

bt_gitbot

JordiBForgeFlow and others added 6 commits February 24, 2025 06:44
Signed-off-by etobella
…to load CoA

Since odoo/odoo@d0342c8, the default existing company is not getting a
CoA automatically, provoking than the current tests fail with error:

odoo.exceptions.UserError: You can't create a new statement line without a suspense account set on the ... journal.

provoked by the lack of a CoA installed.

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 25, 2025
@bt-admin bt-admin merged commit 94b237b into brain-tec:16.0 Feb 25, 2025
4 checks passed
Copy link

codecov bot commented Feb 25, 2025

Codecov Report

Attention: Patch coverage is 81.81818% with 18 lines in your changes missing coverage. Please review.

Project coverage is 84.22%. Comparing base (f579b75) to head (610de5e).
Report is 144 commits behind head on 16.0.

Files with missing lines Patch % Lines
...tests/test_account_bank_statement_import_online.py 66.66% 4 Missing and 1 partial ⚠️
...test_account_statement_import_online_gocardless.py 28.57% 4 Missing and 1 partial ⚠️
...rt_online/models/online_bank_statement_provider.py 81.81% 1 Missing and 1 partial ⚠️
...e/models/account_statement_import_sheet_mapping.py 71.42% 1 Missing and 1 partial ⚠️
...le/models/account_statement_import_sheet_parser.py 89.47% 0 Missing and 2 partials ⚠️
...wizards/online_bank_statement_provider_existing.py 0.00% 1 Missing ⚠️
...nto/models/online_bank_statement_provider_qonto.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             16.0     #610      +/-   ##
==========================================
+ Coverage   83.73%   84.22%   +0.49%     
==========================================
  Files          95       95              
  Lines        3264     3335      +71     
  Branches      477      390      -87     
==========================================
+ Hits         2733     2809      +76     
+ Misses        400      387      -13     
- Partials      131      139       +8     

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

4 participants