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

* chore: frappe.whitelist for doc methods

* fix: incorrect spelling

* fix: sider issue

Co-authored-by: Sagar Vora <sagar@resilient.tech>
This commit is contained in:
Walstan Baptista
2021-03-31 12:30:32 +05:30
committed by GitHub
parent 353aa59c42
commit d6360755b9
79 changed files with 149 additions and 60 deletions

View File

@@ -7,6 +7,7 @@ import frappe
from frappe.model.document import Document
class QualityFeedback(Document):
@frappe.whitelist()
def set_parameters(self):
if self.template and not getattr(self, 'parameters', []):
for d in frappe.get_doc('Quality Feedback Template', self.template).parameters: