Skip to content

Commit

Permalink
[IMP] sale_commission_product_criteria: no need to order items by id
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasProgrammer committed Aug 15, 2023
1 parent 69c3876 commit e719df2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _get_commission_items(self, commission, product):
AND (item.commission_id = %s)
AND (item.active = TRUE)
ORDER BY
item.applied_on, categ.complete_name desc, item.id desc
item.applied_on, categ.complete_name desc
""",
(
product.product_tmpl_id.ids,
Expand Down
1 change: 0 additions & 1 deletion sale_commission_product_criteria/views/views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
name="commission_id"
invisible="context.get('hide_commission_id')"
options="{'no_create': True, 'no_open': 1}"
domain="[('commission_type', '=', 'product')]"
/>
<field name="applied_on" widget="radio" />
<field name="based_on" invisible="1" />
Expand Down

0 comments on commit e719df2

Please sign in to comment.