Merge branch 'hotfix'
This commit is contained in:
commit
7899fc9f6e
5 changed files with 9 additions and 7 deletions
|
|
@ -1,2 +1,2 @@
|
|||
from __future__ import unicode_literals
|
||||
__version__ = "6.27.20"
|
||||
__version__ = "6.27.21"
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -791,6 +791,7 @@
|
|||
"code": "et",
|
||||
"currency_fraction": "Santim",
|
||||
"currency_fraction_units": 100,
|
||||
"currency_name": "Ethiopian Birr",
|
||||
"currency_symbol": "Br",
|
||||
"number_format": "#,###.##",
|
||||
"timezones": [
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
2
setup.py
2
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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue