diff --git a/frappe/__version__.py b/frappe/__version__.py index 46a1a946dc..0fb7878698 100644 --- a/frappe/__version__.py +++ b/frappe/__version__.py @@ -1,2 +1,2 @@ from __future__ import unicode_literals -__version__ = "6.27.20" +__version__ = "6.27.21" diff --git a/frappe/core/doctype/report/report.py b/frappe/core/doctype/report/report.py index 1c1e117b13..b7f63b7c91 100644 --- a/frappe/core/doctype/report/report.py +++ b/frappe/core/doctype/report/report.py @@ -20,14 +20,15 @@ class Report(Document): if frappe.session.user=="Administrator" and getattr(frappe.local.conf, 'developer_mode',0)==1: self.is_standard = "Yes" + if self.is_standard == "No" and frappe.db.get_value("Report", self.name, "is_standard") == "Yes": + frappe.throw(_("Cannot edit a standard report. Please duplicate and create a new report")) + if self.is_standard == "Yes" and frappe.session.user!="Administrator": - frappe.msgprint(_("Only Administrator can save a standard report. Please rename and save."), - raise_exception=True) + frappe.throw(_("Only Administrator can save a standard report. Please rename and save.")) if self.report_type in ("Query Report", "Script Report") \ and frappe.session.user!="Administrator": - frappe.msgprint(_("Only Administrator allowed to create Query / Script Reports"), - raise_exception=True) + frappe.throw(_("Only Administrator allowed to create Query / Script Reports")) def on_update(self): self.export_doc() diff --git a/frappe/geo/country_info.json b/frappe/geo/country_info.json index 82631185de..65b23dba0b 100644 --- a/frappe/geo/country_info.json +++ b/frappe/geo/country_info.json @@ -791,6 +791,7 @@ "code": "et", "currency_fraction": "Santim", "currency_fraction_units": 100, + "currency_name": "Ethiopian Birr", "currency_symbol": "Br", "number_format": "#,###.##", "timezones": [ diff --git a/frappe/hooks.py b/frappe/hooks.py index 94b7f2581f..dfb0685e1c 100644 --- a/frappe/hooks.py +++ b/frappe/hooks.py @@ -5,7 +5,7 @@ app_publisher = "Frappe Technologies" app_description = "Full stack web framework with Python, Javascript, MariaDB, Redis, Node" app_icon = "octicon octicon-circuit-board" -app_version = "6.27.20" +app_version = "6.27.21" app_color = "orange" source_link = "https://github.com/frappe/frappe" app_license = "MIT" diff --git a/setup.py b/setup.py index 724d41521f..afe470c8ed 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages from pip.req import parse_requirements -version = "6.27.20" +version = "6.27.21" requirements = parse_requirements("requirements.txt", session="") setup(