修复报废

This commit is contained in:
jinling.yang
2024-08-27 11:24:04 +08:00
parent 9b957848c2
commit b40a87df88
10 changed files with 75 additions and 78 deletions

View File

@@ -142,13 +142,13 @@ class MrpProduction(models.Model):
def action_view_remanufacture_productions(self):
self.ensure_one()
mrp_production_ids = self.env['mrp.production'].search(
mrp_production = self.env['mrp.production'].search(
[('id', '=', self.remanufacture_production_id.id)])
action = {
'res_model': 'mrp.production',
'type': 'ir.actions.act_window',
'view_mode': 'form',
'res_id': mrp_production_ids[0],
'res_id': mrp_production.id,
}
return action