mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[UPD] remove unnecessary condition
This commit is contained in:
committed by
Meritxell Abellan
parent
40af4c8d4e
commit
9cc6ac9af5
@@ -29,8 +29,6 @@ class PurchaseOrder(models.Model):
|
|||||||
(self.env.ref("mrp.mrp_production_form_view").id, "form")
|
(self.env.ref("mrp.mrp_production_form_view").id, "form")
|
||||||
]
|
]
|
||||||
action["res_id"] = productions.ids[0]
|
action["res_id"] = productions.ids[0]
|
||||||
else:
|
|
||||||
action = {"type": "ir.actions.act_window_close"}
|
|
||||||
return action
|
return action
|
||||||
|
|
||||||
def _compute_subcontract_production_count(self):
|
def _compute_subcontract_production_count(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user