-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v11-pre-release' into version-11
- Loading branch information
Showing
4 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import frappe | ||
|
||
def execute(): | ||
items = [] | ||
items = frappe.db.sql("""select item_code from `tabItem` group by item_code having count(*) > 1""", as_dict=True) | ||
if items: | ||
for item in items: | ||
frappe.db.sql("""update `tabItem` set item_code=name where item_code = %s""", (item.item_code)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
from __future__ import unicode_literals | ||
from frappe import _ | ||
import frappe | ||
|
||
def execute(): | ||
|
||
hr_settings = frappe.get_single("HR Settings") | ||
hr_settings.leave_approval_notification_template = "Leave Approval Notification" | ||
hr_settings.leave_status_notification_template = "Leave Status Notification" | ||
hr_settings.save() | ||
hr_settings.leave_approval_notification_template = _("Leave Approval Notification") | ||
hr_settings.leave_status_notification_template = _("Leave Status Notification") | ||
hr_settings.save() |