Skip to content

Commit

Permalink
[FIX] connector_wordpress: Alternative bind don't use backend
Browse files Browse the repository at this point in the history
  • Loading branch information
KNVx committed Dec 19, 2023
1 parent e06ac6e commit 3312048
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion connector_wordpress/models/ir_attachment/binder.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ class WordPressIrAttachmentBinder(Component):

def _get_external_record_domain(self, relation, values):
equivalent_binding_attachment = self.env["wordpress.ir.attachment"].search(

Check warning on line 17 in connector_wordpress/models/ir_attachment/binder.py

View check run for this annotation

Codecov / codecov/patch

connector_wordpress/models/ir_attachment/binder.py#L17

Added line #L17 was not covered by tests
[("checksum", "=", relation.checksum)],
[
("checksum", "=", relation.checksum),
("backend_id", "=", self.backend_record.id),
],
limit=1,
)
if equivalent_binding_attachment:
Expand Down

0 comments on commit 3312048

Please sign in to comment.