From f6c0e1603cddb12a7b5fbb3eefd5fc106612a58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20D=C3=ADaz?= Date: Tue, 15 Jan 2019 16:22:18 +0100 Subject: [PATCH] [FIX] Connector Pricelist Item --- hotel_channel_connector/models/product_pricelist_item/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotel_channel_connector/models/product_pricelist_item/common.py b/hotel_channel_connector/models/product_pricelist_item/common.py index 6e25e546e..0dbc238c4 100644 --- a/hotel_channel_connector/models/product_pricelist_item/common.py +++ b/hotel_channel_connector/models/product_pricelist_item/common.py @@ -66,7 +66,7 @@ class BindingProductPricelistItemListener(Component): if not any(record.channel_bind_ids): channel_product_pricelist_item_obj = self.env[ 'channel.product.pricelist.item'] - for pricelist_bind in record.restriction_id.channel_bind_ids: + for pricelist_bind in record.pricelist_id.channel_bind_ids: pricelist_item_bind = channel_product_pricelist_item_obj.search([ ('odoo_id', '=', record.id), ('backend_id', '=', pricelist_bind.backend_id.id),