From e78141eeb0bd49601cf420afb5f4c58a1d02c053 Mon Sep 17 00:00:00 2001 From: Raf Ven Date: Fri, 8 Nov 2019 12:14:23 +0100 Subject: [PATCH] [MIG] account_payment_mode: Migration to 13.0 --- account_payment_mode/models/account_payment_mode.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/account_payment_mode/models/account_payment_mode.py b/account_payment_mode/models/account_payment_mode.py index 8993b4cf1..c4c57f32e 100644 --- a/account_payment_mode/models/account_payment_mode.py +++ b/account_payment_mode/models/account_payment_mode.py @@ -20,9 +20,7 @@ class AccountPaymentMode(models.Model): string="Company", required=True, ondelete="restrict", - default=lambda self: self.env["res.company"]._company_default_get( - "account.payment.mode" - ), + default=lambda self: self.env.company, ) bank_account_link = fields.Selection( [("fixed", "Fixed"), ("variable", "Variable")],