This commit is contained in:
gqh
2023-01-12 14:16:05 +08:00
parent f5cfd50d33
commit c212810d60
2 changed files with 6 additions and 9 deletions

View File

@@ -228,14 +228,8 @@ class ResMrpWorkOrder(models.Model):
tray = self.env['sf.tray'].search([("production_id", "=", self.production_id.id)])
if tray:
tray.unclamp()
return {
'name': _("工单"),
'view_mode': 'form',
'res_model': 'mrp.workorder',
'res_id': self.id,
'type': 'ir.actions.act_window',
'target': 'new'
}
self.tray_id = tray
# return {
# 'name': _('New Maintenance Request'),