Skip to content

Commit

Permalink
[14.0][FIX] sale_commission_salesman: fix singleton issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cormaza authored and ioans73 committed May 7, 2024
1 parent 4cc1fdf commit 98aeb05
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,6 +18,6 @@ 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))]

0 comments on commit 98aeb05

Please sign in to comment.