Merge pull request #14169 from pratu16x7/hotfix
[hotfix][charts] update, without new build system
diff --git a/erpnext/hr/doctype/leave_application/leave_application.py b/erpnext/hr/doctype/leave_application/leave_application.py
index f40b442..e03764a 100755
--- a/erpnext/hr/doctype/leave_application/leave_application.py
+++ b/erpnext/hr/doctype/leave_application/leave_application.py
@@ -126,6 +126,7 @@
doc.company = self.company
doc.status = "On Leave"
doc.leave_type = self.leave_type
+ doc.insert(ignore_permissions=True)
doc.submit()
else:
doc = frappe.new_doc("Attendance")
@@ -134,6 +135,7 @@
doc.company = self.company
doc.status = "Half Day"
doc.leave_type = self.leave_type
+ doc.insert(ignore_permissions=True)
doc.submit()
def validate_salary_processed_days(self):
diff --git a/erpnext/stock/doctype/item/item.py b/erpnext/stock/doctype/item/item.py
index 203458e..effbe82 100644
--- a/erpnext/stock/doctype/item/item.py
+++ b/erpnext/stock/doctype/item/item.py
@@ -501,7 +501,7 @@
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):