diff --git a/foundation/erpnext_foundation/doctype/conference_participant/conference_participant.py b/foundation/erpnext_foundation/doctype/conference_participant/conference_participant.py index 1d5ae1a2..b8cd5328 100644 --- a/foundation/erpnext_foundation/doctype/conference_participant/conference_participant.py +++ b/foundation/erpnext_foundation/doctype/conference_participant/conference_participant.py @@ -7,4 +7,6 @@ import frappe from frappe.model.document import Document class ConferenceParticipant(Document): - pass + def on_payment_authorized(self, status_changed_to=None): + self.paid = 1 + self.save(ignore_permissions=True)