Skip to content

Commit

Permalink
Merge pull request #662 from OpenSPP/spp_attendance
Browse files Browse the repository at this point in the history
added message for pagination
  • Loading branch information
reichie020212 authored Nov 12, 2024
2 parents d3ff745 + 651884e commit 1d8b374
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spp_attendance/wizard/import_attendance.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,16 @@ def _import_attendance(self, data):

imported_count = self.env["spp.attendance.subscriber"].search_count([]) - initial_count

message = _("Imported %s persons.", imported_count)
if "pagination" in data:
message = _("Import successfully. \n Pagination information: %s", data["pagination"])

return {
"type": "ir.actions.client",
"tag": "display_notification",
"params": {
"title": _("Import"),
"message": _("Imported %s persons.", imported_count),
"message": message,
"sticky": False,
"type": "success",
},
Expand Down

0 comments on commit 1d8b374

Please sign in to comment.