[UPD] remove unnecessary condition

This commit is contained in:
Aungkokolin1997
2023-04-05 09:11:46 +06:30
committed by Meritxell Abellan
parent 40af4c8d4e
commit 9cc6ac9af5

View File

@@ -29,8 +29,6 @@ class PurchaseOrder(models.Model):
(self.env.ref("mrp.mrp_production_form_view").id, "form")
]
action["res_id"] = productions.ids[0]
else:
action = {"type": "ir.actions.act_window_close"}
return action
def _compute_subcontract_production_count(self):