Merge pull request #9537 from mbauskar/patch

[minor] fixed the report value for  deprecated report patch
This commit is contained in:
Makarand Bauskar 2017-06-29 21:57:09 +05:30 committed by GitHub
commit c6e1c3c048

View File

@ -35,7 +35,7 @@ def check_and_update_desktop_icon_for_report(report):
elif report in ["Customer Addresses And Contacts", "Supplier Addresses And Contacts"]:
frappe.db.sql("""update `tabDesktop Icon` set _report='{value}'
where name in ({docnames})""".format(
value=report,
value="Addresses And Contacts",
docnames=",".join(["'%s'"%icon for icon in desktop_icons])
)
)