mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
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:
@@ -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`
|
||||||
|
|||||||
Reference in New Issue
Block a user