Merge pull request #10195 from scmmishra/log-patch-fix

fix: reload doc in web tracking patch
This commit is contained in:
Shivam Mishra 2020-04-30 19:31:59 +05:30 committed by GitHub
commit 3d9a6bbd1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
import frappe
def execute():
frappe.reload_doctype('Web Page View')
frappe.reload_doc('website', 'doctype', 'web_page_view', force=True)
frappe.db.sql("""UPDATE `tabWeb Page View` set path="/" where path=''""")