添加功能

This commit is contained in:
李鹏宇
2025-10-12 11:00:43 +08:00
parent 4cf8b9544b
commit 8cdc0040a6
6 changed files with 31 additions and 6 deletions
@@ -15,6 +15,7 @@ class AttendanceIotManager(models.Model):
attendance_iot_id = fields.Many2one('attendance.iot', string="设备号")
attendance_address = fields.Char(string="设备地址")
data_selection = fields.Selection([('mqtt', 'mqtt'), ('api', 'api')], default="mqtt", string="数据类型")
remarks = fields.Text(string='备注')
def action_attendance_iot_manager(self):
return {
@@ -8,6 +8,7 @@
<field name="attendance_iot_id"/>
<field name="attendance_address"/>
<field name="data_selection" required="1"/>
<field name="remarks"/>
<button name="employee_message" string="员工数据" type="object" class="oe_highlight"/>
</tree>
</field>