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,