From 7f374e7ba5e653e34e583cc61733ca2fe427d2bb Mon Sep 17 00:00:00 2001 From: Mangesh-Khairnar Date: Thu, 30 Apr 2020 17:55:03 +0530 Subject: [PATCH] fix: pre-process both the existing and new products --- erpnext/hub_node/api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/hub_node/api.py b/erpnext/hub_node/api.py index 2035174c983..b260417fbf8 100644 --- a/erpnext/hub_node/api.py +++ b/erpnext/hub_node/api.py @@ -157,8 +157,9 @@ def publish_selected_items(items_to_publish): existing_items = map_fields(items_to_update) try: - item_sync_preprocess(len(items)) - convert_relative_image_urls_to_absolute(items) + item_sync_preprocess(len(new_items+existing_items)) + convert_relative_image_urls_to_absolute(new_items) + convert_relative_image_urls_to_absolute(existing_items) # TODO: Publish Progress connection = get_hub_connection()