From c6c177f8b6494c230dd4bdaec400d3eace93a80e Mon Sep 17 00:00:00 2001 From: Nicolas JEUDY Date: Tue, 1 Oct 2024 10:30:00 +0200 Subject: [PATCH] [FIX] use commercial_partner_id on prepare_payment_vals method --- .../wizard/purchase_advance_payment_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchase_advance_payment/wizard/purchase_advance_payment_wizard.py b/purchase_advance_payment/wizard/purchase_advance_payment_wizard.py index 0ef7fdc4fbd..ceac37d3c8b 100644 --- a/purchase_advance_payment/wizard/purchase_advance_payment_wizard.py +++ b/purchase_advance_payment/wizard/purchase_advance_payment_wizard.py @@ -93,7 +93,7 @@ def onchange_date(self): self.currency_amount = amount_advance def _prepare_payment_vals(self, purchase): - partner_id = purchase.partner_id.id + partner_id = purchase.partner_id.commercial_partner_id.id return { "date": self.date, "amount": self.amount_advance,