Skip to content

Commit

Permalink
[FIX] use commercial_partner_id on prepare_payment_vals method
Browse files Browse the repository at this point in the history
  • Loading branch information
njeudy committed Oct 1, 2024
1 parent 4233544 commit c6c177f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c6c177f

Please sign in to comment.