From 919928e98f2127760ed90dada62ed03886d66b5a Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Thu, 14 Apr 2022 11:20:59 +0200 Subject: [PATCH] [14.0][IMP] account_payment_order: Remove not needed assert as parameter is required --- account_payment_order/models/account_move_line.py | 1 - account_payment_order/readme/CONTRIBUTORS.rst | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/account_payment_order/models/account_move_line.py b/account_payment_order/models/account_move_line.py index 5389b1c9d..0f9fadd3b 100644 --- a/account_payment_order/models/account_move_line.py +++ b/account_payment_order/models/account_move_line.py @@ -81,7 +81,6 @@ class AccountMoveLine(models.Model): def _prepare_payment_line_vals(self, payment_order): self.ensure_one() - assert payment_order, "Missing payment order" communication_type, communication = self._get_communication() if self.currency_id: currency_id = self.currency_id.id diff --git a/account_payment_order/readme/CONTRIBUTORS.rst b/account_payment_order/readme/CONTRIBUTORS.rst index acf4c751b..795a7f0f7 100644 --- a/account_payment_order/readme/CONTRIBUTORS.rst +++ b/account_payment_order/readme/CONTRIBUTORS.rst @@ -11,6 +11,8 @@ * Angel Moya * Jose MarĂ­a Alzaga * Meyomesse Gilles +* Denis Roussel + * `DynApps `_: * Raf Ven