From 9ba9a1ec8ad26cb440cef02e036590eb66afa3cc Mon Sep 17 00:00:00 2001 From: Eric Antones Date: Thu, 15 Jul 2021 20:04:28 +0200 Subject: [PATCH] [FIX] connector_pms_wubook: no Pricelist or Availability Plan exported if it's done from backend --- connector_pms_wubook/models/pms_availability_plan/binding.py | 1 + connector_pms_wubook/models/product_pricelist/binding.py | 1 + 2 files changed, 2 insertions(+) diff --git a/connector_pms_wubook/models/pms_availability_plan/binding.py b/connector_pms_wubook/models/pms_availability_plan/binding.py index 9af9ebf35f5..8ce93a4c1bb 100644 --- a/connector_pms_wubook/models/pms_availability_plan/binding.py +++ b/connector_pms_wubook/models/pms_availability_plan/binding.py @@ -95,6 +95,7 @@ def export_data(self, backend_record=None): return self.export_batch( backend_record=backend_record, domain=[ + "|", ("pms_property_ids", "=", False), ("pms_property_ids", "in", backend_record.pms_property_id.ids), ], diff --git a/connector_pms_wubook/models/product_pricelist/binding.py b/connector_pms_wubook/models/product_pricelist/binding.py index 86c34ea5a27..e27680ddc94 100644 --- a/connector_pms_wubook/models/product_pricelist/binding.py +++ b/connector_pms_wubook/models/product_pricelist/binding.py @@ -84,6 +84,7 @@ def export_data(self, backend_record=None): return self.export_batch( backend_record=backend_record, domain=[ + "|", ("pms_property_ids", "=", False), ("pms_property_ids", "in", backend_record.pms_property_id.ids), ],