[MIG] web_ir_actions_act_window_message: Migration to 14.0

pull/1757/head
Koen Loodts 2020-12-07 20:21:54 +01:00 committed by Raf Ven
parent 9320880dc8
commit 6c71cb2954
8 changed files with 48 additions and 14 deletions

View File

@ -113,6 +113,10 @@ Contributors
* Benjamin Willig (ACSONE SA/NV) <benjamin.willig@acsone.eu>
* Ioan Galan (Studio73) <ioan@studio73.es>
* Abraham Anes (Studio73) <abraham@studio73.es>
* `DynApps NV <https://www.dynapps.be>`_:
* Koen Loodts
* Raf Ven
Maintainers
~~~~~~~~~~~
@ -127,6 +131,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
This module is part of the `OCA/web <https://github.com/OCA/web/tree/13.0/web_ir_actions_act_window_message>`_ project on GitHub.
This module is part of the `OCA/web <https://github.com/OCA/web/tree/14.0/web_ir_actions_act_window_message>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -0,0 +1 @@
from . import models

View File

@ -2,12 +2,13 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Client side message boxes",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"author": "Therp BV, " "ACSONE SA/NV, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"license": "AGPL-3",
"category": "Hidden/Dependency",
"summary": "Show a message box to users",
"depends": ["web"],
"data": ["views/templates.xml"],
"data": ["security/ir.model.access.csv", "views/templates.xml"],
"qweb": ["static/src/xml/web_ir_actions_act_window_message.xml"],
}

View File

@ -0,0 +1 @@
from . import ir_actions

View File

@ -0,0 +1,21 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class IrActionsActWindowMessage(models.Model):
_name = "ir.actions.act_window.message"
_description = "Action Window Message"
_inherit = "ir.actions.actions"
_table = "ir_actions"
type = fields.Char(default="ir.actions.act_window.message")
def _get_readable_fields(self):
return super()._get_readable_fields() | {
"title",
"buttons",
"close_button_title",
"message",
"is_html_message",
}

View File

@ -3,3 +3,7 @@
* Benjamin Willig (ACSONE SA/NV) <benjamin.willig@acsone.eu>
* Ioan Galan (Studio73) <ioan@studio73.es>
* Abraham Anes (Studio73) <abraham@studio73.es>
* `DynApps NV <https://www.dynapps.be>`_:
* Koen Loodts
* Raf Ven

View File

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
crud_ir_actions_act_window_message,access_ir_actions_act_window_message,model_ir_actions_act_window_message,,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 crud_ir_actions_act_window_message access_ir_actions_act_window_message model_ir_actions_act_window_message 1 1 1 1

View File

@ -80,7 +80,7 @@ odoo.define("web.web_ir_actions_act_window_message", function(require) {
text: button_definition.name || "No name set",
classes: button_definition.classes || "btn-default",
click: function () {
if (button_definition.type == "method") {
if (button_definition.type === "method") {
self._rpc({
model: button_definition.model,
method: button_definition.method,