[FIX] account_payment : don't copy the journal

During the copy of provider if the journal is set, it create a new account.payment.method.line, and if you change the company of the new provider you have an error when you try to create a new journal.

closes odoo/odoo#157767

X-original-commit: 0357c9ec749d893ba1d7913903fd0c45df400662
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
This commit is contained in:
Florent de Labarre
2024-03-15 10:43:55 +00:00
committed by qdp-odoo
parent e9bdb99124
commit 7090d14152
@@ -14,6 +14,7 @@ class PaymentProvider(models.Model):
inverse='_inverse_journal_id',
check_company=True,
domain='[("type", "=", "bank")]',
copy=False,
)
#=== COMPUTE METHODS ===#