Update transaction_base.py

This commit is contained in:
Pratik Vyas 2015-02-20 16:22:24 +05:30
parent 813f0eda05
commit 7f9489e814

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)