mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-30 01:22:18 +02:00
fix: if id not found then compare item name to avoid duplicate item creation (#19002)
This commit is contained in:
@@ -62,7 +62,8 @@ def _order(*args, **kwargs):
|
||||
|
||||
item_woo_com_id = item.get("product_id")
|
||||
|
||||
if frappe.get_value("Item",{"woocommerce_id": item_woo_com_id}):
|
||||
if frappe.get_value("Item",{"woocommerce_id": item_woo_com_id}) or\
|
||||
frappe.get_value("Item",{"item_name": item.get('name')}):
|
||||
#Edit
|
||||
link_item(item,1)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user