Skip to content

Commit

Permalink
fix: only update if variant table empty
Browse files Browse the repository at this point in the history
  • Loading branch information
GursheenK committed Oct 25, 2023
1 parent 5deba1b commit d436a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/get_item_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def get_basic_details(args, item, overwrite_warehouse=True):
if not item:
item = frappe.get_doc("Item", args.get("item_code"))

if item.variant_of:
if item.variant_of and not item.taxes:
item.update_template_tables()

item_defaults = get_item_defaults(item.name, args.company)
Expand Down

0 comments on commit d436a40

Please sign in to comment.