Skip to content

Commit

Permalink
fix: do not create website item if already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Jan 31, 2025
1 parent c8a2641 commit ecdc65e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webshop/patches/create_website_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@


def execute():
if frappe.get_all("Website Item", limit=1):
return

frappe.reload_doc("webshop", "doctype", "website_item")
frappe.reload_doc("webshop", "doctype", "website_item_tabbed_section")
frappe.reload_doc("webshop", "doctype", "website_offer")
Expand Down

0 comments on commit ecdc65e

Please sign in to comment.