We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e339bd7 commit 690131cCopy full SHA for 690131c
spp_idqueue/wizard/request_id_wizard.py
@@ -49,7 +49,24 @@ def request_id(self):
49
"status": status,
50
"registrant_id": rec.registrant_id.id,
51
}
52
- return self.env["spp.print.queue.id"].create(vals)
+ self.env["spp.print.queue.id"].create(vals)
53
+ message = _(
54
+ "A new ID request has been successfully created for registrant: %s.", rec.registrant_id.name
55
+ )
56
+ kind = "info"
57
+ return {
58
+ "type": "ir.actions.client",
59
+ "tag": "display_notification",
60
+ "params": {
61
+ "title": _("ID Request"),
62
+ "message": message,
63
+ "sticky": True,
64
+ "type": kind,
65
+ "next": {
66
+ "type": "ir.actions.act_window_close",
67
+ },
68
69
+ }
70
else:
71
raise UserError(_("There are no selected Template!"))
72
0 commit comments