mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] mrp_multi_level: black, isort, prettier
This commit is contained in:
@@ -5,7 +5,7 @@ from odoo import fields, models
|
|||||||
|
|
||||||
|
|
||||||
class MrpProduction(models.Model):
|
class MrpProduction(models.Model):
|
||||||
""" Manufacturing Orders """
|
"""Manufacturing Orders"""
|
||||||
|
|
||||||
_inherit = "mrp.production"
|
_inherit = "mrp.production"
|
||||||
|
|
||||||
|
|||||||
@@ -441,7 +441,7 @@ class MultiLevelMrp(models.TransientModel):
|
|||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def _exclude_from_mrp(self, product, mrp_area):
|
def _exclude_from_mrp(self, product, mrp_area):
|
||||||
""" To extend with various logic where needed. """
|
"""To extend with various logic where needed."""
|
||||||
product_mrp_area = self.env["product.mrp.area"].search(
|
product_mrp_area = self.env["product.mrp.area"].search(
|
||||||
[("product_id", "=", product.id), ("mrp_area_id", "=", mrp_area.id)],
|
[("product_id", "=", product.id), ("mrp_area_id", "=", mrp_area.id)],
|
||||||
limit=1,
|
limit=1,
|
||||||
|
|||||||
Reference in New Issue
Block a user