Skip to content

Commit

Permalink
[FIX] sale_commission: Strictly check commission type
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoRubi authored and pedrobaeza committed Mar 28, 2019
1 parent a57c666 commit b1b275a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sale_commission/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2014-2018 Tecnativa - Pedro M. Baeza
{
'name': 'Sales commissions',
'version': '11.0.2.1.1',
'version': '11.0.2.1.2',
'author': 'Tecnativa,'
'Odoo Community Association (OCA)',
'category': 'Sales Management',
Expand Down
2 changes: 1 addition & 1 deletion sale_commission/models/sale_commission_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _get_commission_amount(self, commission, subtotal, product, quantity):
])
if commission.commission_type == 'fixed':
return subtotal * (commission.fix_qty / 100.0)
else:
elif commission.commission_type == 'section':
return commission.calculate_section(subtotal)

@api.onchange('agent')
Expand Down

0 comments on commit b1b275a

Please sign in to comment.