diff --git a/yuthon_hr_attendance/models/wifi_message.py b/yuthon_hr_attendance/models/wifi_message.py index 19bf9b67e..a509e1abf 100644 --- a/yuthon_hr_attendance/models/wifi_message.py +++ b/yuthon_hr_attendance/models/wifi_message.py @@ -8,7 +8,7 @@ class WifiMessage(models.Model): _name = 'wifi.message' _description = 'wifi名称管理' - mac_ids = fields.Many2one('mac.line', 'wifi_id', string='MAC地址') + mac_ids = fields.Many2many('mac.line', 'wifi_id', string='MAC地址') name = fields.Char(string='名称') bssid = fields.Char(string='BSSID') company_id = fields.Many2one("res.company", string="公司", default=lambda self: self.env.company)