Merge pull request #23440 from legendleap/version-12-hotfox-itemcode

fix: include item_code in items result to allow adding product info in custom templates
This commit is contained in:
rohitwaghchaure
2020-10-12 17:30:45 +05:30
committed by GitHub

View File

@@ -375,7 +375,7 @@ def get_items(filters=None, search=None):
results = frappe.db.sql(''' results = frappe.db.sql('''
SELECT SELECT
`tabItem`.`name`, `tabItem`.`item_name`, `tabItem`.`name`, `tabItem`.`item_name`, `tabItem`.`item_code`,
`tabItem`.`website_image`, `tabItem`.`image`, `tabItem`.`website_image`, `tabItem`.`image`,
`tabItem`.`web_long_description`, `tabItem`.`description`, `tabItem`.`web_long_description`, `tabItem`.`description`,
`tabItem`.`route` `tabItem`.`route`