mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 04:59:18 +00:00
Merge branch 'develop'
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
__version__ = '6.7.2'
|
__version__ = '6.7.3'
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ blogs.
|
|||||||
"""
|
"""
|
||||||
app_icon = "icon-th"
|
app_icon = "icon-th"
|
||||||
app_color = "#e74c3c"
|
app_color = "#e74c3c"
|
||||||
app_version = "6.7.2"
|
app_version = "6.7.3"
|
||||||
source_link = "https://github.com/frappe/erpnext"
|
source_link = "https://github.com/frappe/erpnext"
|
||||||
|
|
||||||
error_report_email = "support@erpnext.com"
|
error_report_email = "support@erpnext.com"
|
||||||
|
|||||||
@@ -2,14 +2,15 @@ from __future__ import unicode_literals
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
for leave_allocation in frappe.db.sql("select name, fiscal_year from `tabLeave Allocation`", as_dict=True):
|
if frappe.db.has_column("Leave Allocation", "fiscal_year"):
|
||||||
year_start_date, year_end_date = frappe.db.get_value("Fiscal Year", leave_allocation["fiscal_year"],
|
for leave_allocation in frappe.db.sql("select name, fiscal_year from `tabLeave Allocation`", as_dict=True):
|
||||||
["year_start_date", "year_end_date"])
|
dates = frappe.db.get_value("Fiscal Year", leave_allocation["fiscal_year"],
|
||||||
|
["year_start_date", "year_end_date"])
|
||||||
frappe.db.sql("""update `tabLeave Allocation`
|
|
||||||
set from_date=%s, to_date=%s where name=%s""",
|
if dates:
|
||||||
(year_start_date, year_end_date, leave_allocation["name"]))
|
year_start_date, year_end_date = dates
|
||||||
|
|
||||||
frappe.db.commit()
|
frappe.db.sql("""update `tabLeave Allocation`
|
||||||
|
set from_date=%s, to_date=%s where name=%s""",
|
||||||
|
(year_start_date, year_end_date, leave_allocation["name"]))
|
||||||
|
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -1,6 +1,6 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
version = "6.7.2"
|
version = "6.7.3"
|
||||||
|
|
||||||
with open("requirements.txt", "r") as f:
|
with open("requirements.txt", "r") as f:
|
||||||
install_requires = f.readlines()
|
install_requires = f.readlines()
|
||||||
|
|||||||
Reference in New Issue
Block a user