Skip to content

Commit

Permalink
fix: dt instead of document in set_value query
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesis189 committed Sep 29, 2021
1 parent 8675ca5 commit d3bb920
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def update_nexus_list(self):
self.save()

def toggle_tax_category_fields(toggle):
frappe.set_value('Custom Field',{'document':'Sales Invoice Item', 'fieldname':'product_tax_category'},'hidden',toggle)
frappe.set_value('Custom Field',{'document':'Item', 'fieldname':'product_tax_category'},'hidden',toggle)
frappe.set_value('Custom Field',{'dt':'Sales Invoice Item', 'fieldname':'product_tax_category'},'hidden',toggle)
frappe.set_value('Custom Field',{'dt':'Item', 'fieldname':'product_tax_category'},'hidden',toggle)


def add_product_tax_categories():
Expand Down

0 comments on commit d3bb920

Please sign in to comment.