[14.0][IMP] account_payment_order: Remove not needed assert as parameter is required

This commit is contained in:
Denis Roussel
2022-04-14 11:20:59 +02:00
parent becc8ac426
commit 919928e98f
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -11,6 +11,8 @@
* Angel Moya <angel.moya@domatix.com>
* Jose María Alzaga <jose.alzaga@aselcis.com>
* Meyomesse Gilles <meyomesse.gilles@gmail.com>
* Denis Roussel <denis.roussel@acsone.eu>
* `DynApps <https://www.dynapps.be>`_:
* Raf Ven <raf.ven@dynapps.be>