Skip to content

Commit

Permalink
Inverted without_sales_orders filter that had a missing NOT
Browse files Browse the repository at this point in the history
  • Loading branch information
ozoromo committed Sep 23, 2024
1 parent c7937f6 commit f5b1a81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion merge_duplicate_contacts/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def open_wizard_action(self):
raise UserError(
_("At least two records are needed to perform this action.")
)
return
context = {}
data = self.prepare_wizard_data()
wizard = self.env["base.partner.merge.automatic.wizard"].create(data)
Expand Down
2 changes: 1 addition & 1 deletion merge_duplicate_contacts/wizard/merge_contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _generate_query(self, fields, maximum_group=100):
if self.without_sales_orders:
where_queries.append(
"""
id IN
id NOT IN
(
SELECT partner_id FROM sale_order
UNION
Expand Down

0 comments on commit f5b1a81

Please sign in to comment.