Skip to content
Snippets Groups Projects
Commit 6af9a69a authored by Danimar Ribeiro's avatar Danimar Ribeiro Committed by xmo-odoo
Browse files

[FIX] recordset in domain value

closes #13693
parent ef60b24c
Branches
Tags
No related merge requests found
......@@ -144,7 +144,7 @@ class MarketingCampaign(models.Model):
similar_res_ids = self.env[self.object_id.model].search([(unique_field.name, '=', unique_value)])
if similar_res_ids:
duplicate_workitem_domain = [
('res_id', 'in', similar_res_ids),
('res_id', 'in', similar_res_ids.ids),
('campaign_id', '=', self.id)
]
return self.env['marketing.campaign.workitem'].search(duplicate_workitem_domain)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment