Merge pull request #14163 from manassolanki/fix-20

[fix] don't update the modified of item price while updating item
This commit is contained in:
Manas Solanki 2018-05-21 16:37:01 +05:30 committed by GitHub
commit a752eca82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -501,7 +501,7 @@ class Item(WebsiteGenerator):
def update_item_price(self):
frappe.db.sql("""update `tabItem Price` set item_name=%s,
item_description=%s, modified=NOW() where item_code=%s""",
item_description=%s where item_code=%s""",
(self.item_name, self.description, self.name))
def on_trash(self):