调整alarm logs的返回数据
This commit is contained in:
@@ -10,7 +10,6 @@ class SfMaintenanceLogs(models.Model):
|
||||
code = fields.Char(string='编码', readonly=True)
|
||||
name = fields.Char(string='名称', compute='_compute_name')
|
||||
type = fields.Selection([('type1', '类型1'), ('type2', '类型2')], string='类型')
|
||||
status = fields.Selection([('待处理', '待处理'), ('已处理', '已处理')], string='状态', default='待处理')
|
||||
brand = fields.Many2one('sf.machine.brand', related='maintenance_equipment_id.brand_id', string='品牌')
|
||||
maintenance_equipment_id = fields.Many2one('maintenance.equipment', string='机台号')
|
||||
maintenance_equipment_oee_id = fields.Many2one('maintenance.equipment.oee', string='设备oee')
|
||||
|
||||
@@ -58,9 +58,6 @@
|
||||
</group>
|
||||
<group>
|
||||
<field name="operator"/>
|
||||
<field name="status"/>
|
||||
|
||||
|
||||
<field name="fault_process"/>
|
||||
<!-- <field name="alarm_way" required="1" widget="radio" options="{'horizontal': true}"/> -->
|
||||
<field name="recovery_time"/>
|
||||
@@ -86,7 +83,6 @@
|
||||
<search>
|
||||
<searchpanel>
|
||||
<field name="maintenance_equipment_id" icon="fa-building" enable_counters="1"/>
|
||||
<field name="status" icon="fa-building" enable_counters="1"/>
|
||||
</searchpanel>
|
||||
<field name="code"/>
|
||||
<field name="name"/>
|
||||
|
||||
Reference in New Issue
Block a user