frappe/frappe#478 removed self.doclist

This commit is contained in:
Rushabh Mehta
2014-04-03 11:46:52 +05:30
parent f191f854cd
commit cfb6ccfe51
6 changed files with 13 additions and 15 deletions

View File

@@ -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):

View File

@@ -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():