From 7090d1415263b52760cd35ca5948c76271e9539a Mon Sep 17 00:00:00 2001 From: Florent de Labarre Date: Mon, 15 Jan 2024 15:51:21 +0000 Subject: [PATCH] [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 --- addons/account_payment/models/payment_provider.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account_payment/models/payment_provider.py b/addons/account_payment/models/payment_provider.py index 12c14fbdcd6..cc54e955125 100644 --- a/addons/account_payment/models/payment_provider.py +++ b/addons/account_payment/models/payment_provider.py @@ -14,6 +14,7 @@ class PaymentProvider(models.Model): inverse='_inverse_journal_id', check_company=True, domain='[("type", "=", "bank")]', + copy=False, ) #=== COMPUTE METHODS ===#