Merge pull request #2805 from frappe/pdvyas-patch-1

Update transaction_base.py
This commit is contained in:
Rushabh Mehta 2015-02-20 16:23:36 +05:30
commit e9b3092167

View File

@ -47,12 +47,12 @@ class TransactionBase(StatusUpdater):
"ref_type": self.doctype,
"ref_name": self.name
})
event.insert(ignore_permissions=True)
if frappe.db.exists("User", self.contact_by):
frappe.share.add("Event", event.name, self.contact_by)
event.insert(ignore_permissions=True)
def validate_uom_is_integer(self, uom_field, qty_fields):
validate_uom_is_integer(self, uom_field, qty_fields)