添加功能
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user