mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 16:15:02 +00:00
[patch] added item patch
This commit is contained in:
5
erpnext/patches/v5_0/item_patches.py
Normal file
5
erpnext/patches/v5_0/item_patches.py
Normal file
@@ -0,0 +1,5 @@
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
frappe.db.sql("update `tabItem` set end_of_life='2099-12-31' where ifnull(end_of_life, '0000-00-00')='0000-00-00'")
|
||||
frappe.db.sql("update `tabItem` set website_image = image where ifnull(website_image, '') = 'attach_files:'")
|
||||
Reference in New Issue
Block a user