* fix: copy all child fields to item variant (cherry picked from commit 5deba1b6f9b03ce5d078d624e339f6b0209a1555) * fix: only update if variant table empty (cherry picked from commit d436a407390c0e0d89c66445539bbb95784be7eb) --------- Co-authored-by: Gursheen Anand <gursheen@frappe.io>
This commit is contained in:
parent
4034c16cde
commit
5c46d7452e
@ -255,7 +255,7 @@ class Item(Document):
|
||||
|
||||
# add item taxes from template
|
||||
for d in template.get("taxes"):
|
||||
self.append("taxes", {"item_tax_template": d.item_tax_template})
|
||||
self.append("taxes", d)
|
||||
|
||||
# copy re-order table if empty
|
||||
if not self.get("reorder_levels"):
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user