Skip to content

Commit

Permalink
[IMP] sale_commission_product_criteria_discount: correct commission t…
Browse files Browse the repository at this point in the history
…ype check
  • Loading branch information
ilyasProgrammer committed Aug 22, 2023
1 parent 2fe4eec commit cabe534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_commission_product_criteria_discount/models/sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def _get_single_commission_amount(self, commission, subtotal, product, quantity)
self.ensure_one()
if product.commission_free or not commission:
return 0.0
if commission.commission_type != "product":
if commission.commission_type in ["percentage", "fixed"]:
return self._get_commission_amount(commission, subtotal, product, quantity)
item_ids = self._get_commission_items(commission, product)
if not item_ids:
Expand Down

0 comments on commit cabe534

Please sign in to comment.