[MIG] web_ir_actions_act_window_message: Migration to 14.0

This commit is contained in:
Koen Loodts
2020-12-07 20:21:54 +01:00
committed by Jasmin Solanki
parent b9a1139de9
commit ebb59c4471
8 changed files with 48 additions and 14 deletions

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",
}