odoo/odoo#67293

Created by fw-bot
Merged at 1ff7ce619b8130bb5b8a9dd6875c4c922eed66cd

Statuses:

  • legal/cla: Contributor License Agreement check
  • ci/runbot: Odoo Test Suite
  • ci/template: Install databases to use to test upgrade in master and ensure that upgrades works with current master.
  • ci/style: Optional style check. Ignore it only if strictly necessary.
  • ci/security: Required security check. Can only be ignored by security team.
label
odoo-dev:saas-14.1-13.0-link-invoice-to-transaction-with-link-nie-UqZG-fw
head
564252ee97f80e2d1dc0b1a114ce0b099be2844c
merged
4 years ago by Nicolas Marcotte (nie)
odoo/odoo
13.0 #67012
14.0 #67289
saas-14.1 #67293
saas-14.2 #67295
15.0
16.0
17.0
18.0
saas-18.1
saas-18.2
saas-18.3
saas-18.4
master #67296

[FW][FIX] payment: link transaction to invoice with payment link

Steps:
- Install account,payment
- Go to Invoicing
- Create an invoice
- Click Actions > Generate a Payment Link
- Follow the generated link
- Pay

Bug:
The transaction is not linked to the sale order in the link table
account_invoice_transaction_rel

Explanation:
This fix is broadly mimicking the behavior of the sales module regarding
the link of an order to a transaction, adding invoice_ids where they
are needed throughout the payment process in order to link the
transaction to the invoice.

opw-2451534

Forward-Port-Of: #67012