Skip to content

Commit

Permalink
Merge PR #551 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by moylop260
  • Loading branch information
OCA-git-bot committed Aug 21, 2024
2 parents e82f4c6 + 9a2951d commit ed4340b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sale_commission_salesman/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def _compute_agent_ids(self):
and x.product_id
and not x.agent_ids
):
partner = self.move_id.invoice_user_id.partner_id
partner = record.move_id.invoice_user_id.partner_id
if partner.agent and partner.salesman_as_agent:
record.agent_ids = [(0, 0, self._prepare_agent_vals(partner))]
record.agent_ids = [(0, 0, record._prepare_agent_vals(partner))]
return result

0 comments on commit ed4340b

Please sign in to comment.