修改设备模块

This commit is contained in:
qihao.gong@jikimo.com
2023-07-28 15:33:31 +08:00
parent 2b69524c57
commit 06de46c084
6 changed files with 2 additions and 29 deletions

View File

@@ -47,11 +47,6 @@ class SfMaintenanceEquipment(models.Model):
overhaul_id = fields.Many2one('equipment.maintenance.standards', string='设备检修标准',
domain="[('maintenance_type','=','检修')]")
eq_maintenance_maintenance_standards_ids = fields.One2many('maintenance.standards', 'maintenance_request_id', string='保养标准项目',
related='eq_maintenance_id.maintenance_standards_ids')
overhaul_maintenance_standards_ids = fields.One2many('maintenance.standards', 'maintenance_request_id', string='检修标准项目',
related='overhaul_id.maintenance_standards_ids')
@api.onchange('eq_maintenance_id', 'overhaul_id')
def _compute_equipment_maintenance_standards_ids(self):