[IMP] mrp_multi_level: add hooks to improve extensibility

This commit is contained in:
Jordi Ballester Alomar
2024-07-26 18:23:30 +02:00
committed by Lois Rilo
parent e23f5ca6a9
commit 0240a7c901
2 changed files with 14 additions and 7 deletions

View File

@@ -293,3 +293,7 @@ class ProductMRPArea(models.Model):
def _get_locations(self):
self.ensure_one()
return self.mrp_area_id._get_locations()
def _should_create_planned_order(self):
self.ensure_one()
return not self.supply_method == "phantom"