Skip to content

Syncing from upstream OCA/account-payment (19.0)#606

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

Syncing from upstream OCA/account-payment (19.0)#606
bt-admin merged 84 commits into
brain-tec:19.0from
OCA:19.0

Conversation

@bt-admin
Copy link
Copy Markdown

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

bt_gitbot

sergio-teruel and others added 30 commits November 13, 2025 11:57
[IMP] account_payment_return: Implement find match with reference field
When entering manually returns, you need to change the line date.

This commit also allows to use header date as defaut line date.
* For journal entry dictionary.
* For extra return lines.

account_payment_return: Period not present in 9.0
New free text field on return lines: additional information on return reason.
This field is populated in account_payment_return_import_sepa_pain with the content of the AddtlInf tag.
This is useful when the return reason code is NARR, meaning the reason description does not match any known code but is in this tag.
…#228)

* Missing return reasons refs #226
* Translations with new return reasons
* name_get: Display name like: "[code] Name"
Use prepare methods for created move and move lines
* [ADD] Account Payment Return Import CAMT: parser camt.054.001.02 files

* [REF] Account Payment Return Import ISO20022: merge the two iso20022 modules in one

* [REF] Account Payment Return Import: use SavepointCase instead of TransactionCase

* [REF] Increase global code coverage
…on guide v13

[FIX] account_payment_return: Fix multi-company rules + migration scripts

[FIX] account_payment_return
Currently translated at 54.6% (53 of 97 strings)

Translation: account-payment-14.0/account-payment-14.0-account_payment_return
Translate-URL: https://translation.odoo-community.org/projects/account-payment-14-0/account-payment-14-0-account_payment_return/nl/
…atically payments

A new check has been introduced in
odoo/odoo@80c2818

So, in test, when creating payment with payment register wizard, as
payments are automatically posted, duplicate posting is now forbidden.

https://github.com/odoo/odoo/blob/14.0/addons/account/wizard/account_payment_register.py#L512
absal-smile and others added 27 commits November 13, 2025 11:57
Currently translated at 100.0% (89 of 89 strings)

Translation: account-payment-18.0/account-payment-18.0-account_payment_return
Translate-URL: https://translation.odoo-community.org/projects/account-payment-18-0/account-payment-18-0-account_payment_return/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-payment-18.0/account-payment-18.0-account_payment_return
Translate-URL: https://translation.odoo-community.org/projects/account-payment-18-0/account-payment-18-0-account_payment_return/
Currently translated at 100.0% (91 of 91 strings)

Translation: account-payment-18.0/account-payment-18.0-account_payment_return
Translate-URL: https://translation.odoo-community.org/projects/account-payment-18-0/account-payment-18-0-account_payment_return/it/
…field to prevent error log

ERROR devel odoo.osv.expression: Non-stored field payment.return.reason.display_name cannot be searched.
NoneType: None
Odoo has changed the mechanism of selecting outstanding account: on v17
there were a field "account_journal_payment_debit_account_id" on
res.company for holding the outstanding account. Now, this outstanding
account is reflected through an XML-ID identifier.

Thus, the adaptation to the module should follow the same mechanism for
selecting the outstanding account.

There's also no need of a specific error message, as the method already
contains one.

TT58856
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-payment-18.0/account-payment-18.0-account_payment_return
Translate-URL: https://translation.odoo-community.org/projects/account-payment-18-0/account-payment-18-0-account_payment_return/
…to initialize the key, its being calculated later in _compute_payments_widget_reconciled_info
…nding_account

In a multi-company environment, you must call the _get_outstanding_account() method
with a virtual account.payment record to ensure that the value returned corresponds
to the correct company.

TT62403
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 19.0 label Jun 1, 2026
@bt-admin bt-admin merged commit c134fd0 into brain-tec:19.0 Jun 1, 2026
4 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 1, 2026

Codecov Report

❌ Patch coverage is 89.89547% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.41%. Comparing base (babfc6c) to head (6b7fcf9).
⚠️ Report is 91 commits behind head on 19.0.

Files with missing lines Patch % Lines
account_payment_return/models/payment_return.py 93.65% 2 Missing and 11 partials ⚠️
...unt_payment_return/models/payment_return_reason.py 59.09% 9 Missing ⚠️
account_payment_return/models/account_move.py 86.00% 4 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             19.0     #606      +/-   ##
==========================================
+ Coverage   92.33%   92.41%   +0.07%     
==========================================
  Files          43       51       +8     
  Lines         939     1331     +392     
  Branches       92      136      +44     
==========================================
+ Hits          867     1230     +363     
- Misses         47       62      +15     
- Partials       25       39      +14     

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