chore: frappe.whitelist for doc methods (#25465)

This commit is contained in:
Walstan Baptista
2021-04-24 14:23:08 +05:30
committed by GitHub
parent 184317d5bd
commit 4a805b5622
10 changed files with 20 additions and 4 deletions

View File

@@ -159,6 +159,7 @@ class NamingSeries(Document):
if frappe.db.get_value('Series', series, 'name', order_by="name") == None:
frappe.db.sql("insert into tabSeries (name, current) values (%s, 0)", (series))
@frappe.whitelist()
def update_series_start(self):
if self.prefix:
prefix = self.parse_naming_series()