Skip to content

Commit 3312048

Browse files
committedDec 19, 2023
[FIX] connector_wordpress: Alternative bind don't use backend
1 parent e06ac6e commit 3312048

File tree

1 file changed

+4
-1
lines changed
  • connector_wordpress/models/ir_attachment

1 file changed

+4
-1
lines changed
 

‎connector_wordpress/models/ir_attachment/binder.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ class WordPressIrAttachmentBinder(Component):
1515

1616
def _get_external_record_domain(self, relation, values):
1717
equivalent_binding_attachment = self.env["wordpress.ir.attachment"].search(
18-
[("checksum", "=", relation.checksum)],
18+
[
19+
("checksum", "=", relation.checksum),
20+
("backend_id", "=", self.backend_record.id),
21+
],
1922
limit=1,
2023
)
2124
if equivalent_binding_attachment:

0 commit comments

Comments
 (0)