From be208933d018549d5a52bf7f480c82bf850a0168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Sat, 1 Mar 2025 20:09:48 +0800 Subject: [PATCH] 1 --- yuthon_notice/models/yuthon_notice.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/yuthon_notice/models/yuthon_notice.py b/yuthon_notice/models/yuthon_notice.py index bf8d0ed2a..27ed6fbcc 100644 --- a/yuthon_notice/models/yuthon_notice.py +++ b/yuthon_notice/models/yuthon_notice.py @@ -38,16 +38,6 @@ class YuthonNotice(models.Model): urgency_level = fields.Selection([('normal', '普件'), ('urgent', '急件'), ('emergency', '特急件')], string='紧急度', default='normal') active = fields.Boolean('Active', default=True, tracking=True) - @api.model_create_multi - def create(self, vals_list): - return { - "name": _("通知公告"), - "type": "ir.actions.act_window", - "view_mode": "form", - "res_model": "yuthon.notice", - "views": [[self.env.ref('yuthon_notice.view_yuthon_notice_form').id, "form"]] - } - def _get_default_name_title(self): return self._description if self._description else self._name