From 594a3e4fa6dc78160e8d2a69d634446f7dd46bd0 Mon Sep 17 00:00:00 2001 From: Reyes4711 Date: Wed, 5 Apr 2023 17:44:47 +0200 Subject: [PATCH] [FIX] account_payment_order: create lines with same sequence name --- account_payment_order/models/account_payment_line.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/account_payment_order/models/account_payment_line.py b/account_payment_order/models/account_payment_line.py index 582f786d7..e3b81d251 100644 --- a/account_payment_order/models/account_payment_line.py +++ b/account_payment_order/models/account_payment_line.py @@ -192,6 +192,9 @@ class AccountPaymentLine(models.Model): "date": self[:1].date, "currency_id": self.currency_id.id, "ref": self.order_id.name, + # Put the name as the wildcard for forcing a unique name. If not, Odoo gets + # the sequence for all the payment at the same time + "name": "/", "payment_reference": "-".join([line.communication for line in self]), "journal_id": journal.id, "partner_bank_id": self.partner_bank_id.id,