Merge pull request #38644 from barredterra/fix-attribute-error

fix: attribute error
This commit is contained in:
s-aga-r 2023-12-12 10:02:16 +05:30 committed by GitHub
commit c41cbb3e29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -572,8 +572,8 @@ def get_item_tax_template(args, item, out):
item_tax_template = _get_item_tax_template(args, item_group_doc.taxes, out)
item_group = item_group_doc.parent_item_group
if args.child_doctype and item_tax_template:
out.update(get_fetch_values(args.child_doctype, "item_tax_template", item_tax_template))
if args.get("child_doctype") and item_tax_template:
out.update(get_fetch_values(args.get("child_doctype"), "item_tax_template", item_tax_template))
def _get_item_tax_template(args, taxes, out=None, for_validate=False):