Skip to content

[19.0][ADD] account_payment_internal_transfer - #4

Open
alan196 wants to merge 220 commits into
19.0from
19.0-add-account_payment_internal_transfer
Open

[19.0][ADD] account_payment_internal_transfer#4
alan196 wants to merge 220 commits into
19.0from
19.0-add-account_payment_internal_transfer

Conversation

@alan196

@alan196 alan196 commented Jul 1, 2026

Copy link
Copy Markdown

Port to 19.0 of OCA#923, which restores the internal transfer functionality removed from the account module in Odoo 18.0.

Same content as the upstream PR OCA#959, opened so it is available in the Jarsa fork while the OCA review is in progress.

  • Internal Transfer checkbox + Destination Journal on payments.
  • Automatic paired payment in the destination journal using the company transfer account, with automatic reconciliation.
  • Cascade of cancel/draft/unlink between paired payments.
  • Internal Transfer shortcut in the bank/cash journal dashboard.

All 10 unit tests pass on a clean 19.0 database.

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.
…OCA#228)

* Missing return reasons refs OCA#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
victoralmau and others added 29 commits June 30, 2026 13:04
[UPD] Update account_payment_return_import_iso20022.pot

[UPD] README.rst

Update translation files

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

Translation: account-payment-13.0/account-payment-13.0-account_payment_return_import_iso20022
Translate-URL: https://translation.odoo-community.org/projects/account-payment-13-0/account-payment-13-0-account_payment_return_import_iso20022/
TT30247

[UPD] Update account_payment_return_import_iso20022.pot

[UPD] README.rst
… return and set partner. fix OCA#581

account_payment_return_import_iso20022 14.0.2.0.1
Currently translated at 56.4% (127 of 225 strings)

Translation: account-payment-16.0/account-payment-16.0-account_payment_return_import_iso20022
Translate-URL: https://translation.odoo-community.org/projects/account-payment-16-0/account-payment-16-0-account_payment_return_import_iso20022/es/
…ement

- Include context keys for avoiding mail operations overhead.
[UPD] Update account_payment_return_import_iso20022.pot

[BOT] post-merge updates

Update translation files

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

Translation: account-payment-17.0/account-payment-17.0-account_payment_return_import_iso20022
Translate-URL: https://translation.odoo-community.org/projects/account-payment-17-0/account-payment-17-0-account_payment_return_import_iso20022/
Currently translated at 21.7% (49 of 225 strings)

Translation: account-payment-17.0/account-payment-17.0-account_payment_return_import_iso20022
Translate-URL: https://translation.odoo-community.org/projects/account-payment-17-0/account-payment-17-0-account_payment_return_import_iso20022/it/

Translated using Weblate (Italian)

Currently translated at 46.2% (104 of 225 strings)

Translation: account-payment-17.0/account-payment-17.0-account_payment_return_import_iso20022
Translate-URL: https://translation.odoo-community.org/projects/account-payment-17-0/account-payment-17-0-account_payment_return_import_iso20022/it/

Translated using Weblate (Italian)

Currently translated at 55.1% (124 of 225 strings)

Translation: account-payment-17.0/account-payment-17.0-account_payment_return_import_iso20022
Translate-URL: https://translation.odoo-community.org/projects/account-payment-17-0/account-payment-17-0-account_payment_return_import_iso20022/it/

Translated using Weblate (Italian)

Currently translated at 100.0% (225 of 225 strings)

Translation: account-payment-17.0/account-payment-17.0-account_payment_return_import_iso20022
Translate-URL: https://translation.odoo-community.org/projects/account-payment-17-0/account-payment-17-0-account_payment_return_import_iso20022/it/

Translated using Weblate (Italian)

Currently translated at 100.0% (225 of 225 strings)

Translation: account-payment-17.0/account-payment-17.0-account_payment_return_import_iso20022
Translate-URL: https://translation.odoo-community.org/projects/account-payment-17-0/account-payment-17-0-account_payment_return_import_iso20022/it/
…when match by payment reference

This commit call supper method without processed lines in self:
OCA@cd89ad9
and that proceed lines are not computed here:
https://github.com/OCA/account-payment/blob/f6f205acd14a474074e4cd301dad8ed426bcd15c/account_payment_return/models/payment_return.py#L393

TT58268
…nstead of move_id

After this PR OCA/bank-payment#1475, the EndToEndId is generated using the payment ID instead of the journal entry (move) ID.

As a result, when importing an payment return XML file, the payment can no longer be matched correctly because the lookup is still performed using the move_id.
The ISO20022 implementation completely overrides `_parse_file()`,
bypassing the fallback parser chain implemented by the base module.

Delegate empty files to `super()` instead of trying to parse them as
ISO20022 XML.

TT63167
Signed-off-by pedrobaeza
Currently translated at 100.0% (35 of 35 strings)

Translation: account-payment-19.0/account-payment-19.0-account_payment_return_import
Translate-URL: https://translation.odoo-community.org/projects/account-payment-19-0/account-payment-19-0-account_payment_return_import/sl/
Signed-off-by pedrobaeza
…n payments

Restore the internal transfer functionality on account.payment that was
removed from the account module in Odoo 18.0: an Internal Transfer
checkbox with a destination journal that automatically creates the
paired payment in the destination journal using the company transfer
account and reconciles both sides.

This is a port to 19.0 of the module proposed for 18.0 in
OCA#923, adapted to the 19.0 linter rules
(api.ondelete instead of raising in unlink, self.env._ translations).
@jarsabot

jarsabot commented Jul 1, 2026

Copy link
Copy Markdown
    **WARNING**: Could not link to Odoo task. Record ID not found in the title of the MR, supported formats:
{ record type }#{ number }

Available types: 'task#', 't#' (case insensitive)

Examples:

  • task#123

  • i#123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.