mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_ir_actions_act_window_message: Migration to 14.0
This commit is contained in:
committed by
Jasmin Solanki
parent
b9a1139de9
commit
ebb59c4471
1
web_ir_actions_act_window_message/models/__init__.py
Normal file
1
web_ir_actions_act_window_message/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import ir_actions
|
||||
21
web_ir_actions_act_window_message/models/ir_actions.py
Normal file
21
web_ir_actions_act_window_message/models/ir_actions.py
Normal 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",
|
||||
}
|
||||
Reference in New Issue
Block a user