Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasProgrammer committed Jun 23, 2023
1 parent 5cb7893 commit 30f5217
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def _get_single_commission_amount(self, commission, subtotal, product, quantity)
)
if not item_ids:
return 0.0
so_id = self.object_id.order_id
group_ids = partner.commission_item_agent_ids.filtered(
lambda x: x.agent_id == self.agent_id
).mapped("group_ids")
Expand All @@ -155,6 +154,7 @@ def _get_single_commission_amount(self, commission, subtotal, product, quantity)
if len(item_ids) == 0:
return 0.0
# Check discount condition
commission_item = False
commission_items = self.env["commission.item"].browse(item_ids)
for commission_item in commission_items:
discount = self._get_discount_value(commission_item)
Expand Down

0 comments on commit 30f5217

Please sign in to comment.