1、设备维保优化

This commit is contained in:
yuxianghui
2024-10-22 17:52:20 +08:00
parent f2482b5128
commit 98923c1797
4 changed files with 130 additions and 50 deletions

View File

@@ -14,6 +14,8 @@ class SfMaintenanceEquipmentCategory(models.Model):
equipment_maintenance_id = fields.Many2one('equipment.maintenance.standards', string='设备维保标准',
domain="[('maintenance_type','=',sf_maintenance_type)]")
active = fields.Boolean('有效', default=True)
@api.onchange('sf_maintenance_type')
def _compute_equipment_maintenance_request_id(self):
for record in self: