[IMP] web_notify: action button name and close

- We can now set a button name to the notification action.
- We can set an icon button as well.
- After the button is clicked, the notification gets closed.
This commit is contained in:
David
2024-04-01 17:22:25 +02:00
committed by trisdoan
parent 09d844578a
commit 8a0c6237e7
8 changed files with 57 additions and 38 deletions

View File

@@ -3,7 +3,7 @@
from odoo import _, api, exceptions, fields, models
from odoo.addons.bus.models.bus import channel_with_db, json_dump
from odoo.addons.web.controllers.main import clean_action
from odoo.addons.web.controllers.utils import clean_action
DEFAULT_MESSAGE = "Default message"