mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 15:47:06 +00:00
frappe/frappe#478 removed self.doclist
This commit is contained in:
@@ -17,7 +17,7 @@ class Note(Document):
|
||||
|
||||
def onload(self):
|
||||
if not self.public and frappe.session.user != self.owner:
|
||||
if frappe.session.user not in [d.user for d in self.doclist if d.doctype=="Note User"]:
|
||||
if frappe.session.user not in [d.user for d in self.get("share_with")]:
|
||||
frappe.msgprint("You are not authorized to read this record.", raise_exception=True)
|
||||
|
||||
def validate(self):
|
||||
|
||||
@@ -56,7 +56,7 @@ class TransactionBase(StatusUpdater):
|
||||
event_doclist.insert()
|
||||
|
||||
def validate_uom_is_integer(self, uom_field, qty_fields):
|
||||
validate_uom_is_integer(self.doclist, uom_field, qty_fields)
|
||||
validate_uom_is_integer(self, uom_field, qty_fields)
|
||||
|
||||
def validate_with_previous_doc(self, source_dt, ref):
|
||||
for key, val in ref.items():
|
||||
|
||||
Reference in New Issue
Block a user