diff --git a/vsd_fleet_ms/vsd_fleet_ms/doctype/round_trip/round_trip.py b/vsd_fleet_ms/vsd_fleet_ms/doctype/round_trip/round_trip.py index 3060910..eb6b5bb 100644 --- a/vsd_fleet_ms/vsd_fleet_ms/doctype/round_trip/round_trip.py +++ b/vsd_fleet_ms/vsd_fleet_ms/doctype/round_trip/round_trip.py @@ -5,7 +5,10 @@ from frappe.model.document import Document class RoundTrip(Document): - def before_save(self): + def after_insert(self): + self.sync_trip_links() + + def on_update(self): self.sync_trip_links() def sync_trip_links(self):