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