diff --git a/mrp_bom_location/__init__.py b/mrp_bom_location/__init__.py index e24555ed0..f75d40a79 100644 --- a/mrp_bom_location/__init__.py +++ b/mrp_bom_location/__init__.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# Copyright 2017 Eficent Business and IT Consulting Services S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import models diff --git a/mrp_bom_location/models/__init__.py b/mrp_bom_location/models/__init__.py index c381246d4..fc89bf227 100644 --- a/mrp_bom_location/models/__init__.py +++ b/mrp_bom_location/models/__init__.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# Copyright 2017 Eficent Business and IT Consulting Services S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import mrp_bom diff --git a/mrp_bom_location/models/mrp_bom.py b/mrp_bom_location/models/mrp_bom.py index 50f317648..81ecd84e1 100644 --- a/mrp_bom_location/models/mrp_bom.py +++ b/mrp_bom_location/models/mrp_bom.py @@ -14,7 +14,7 @@ class MrpBom(models.Model): domain=[('usage', '=', 'internal')]) -class MrpBom(models.Model): +class MrpBomLine(models.Model): _inherit = "mrp.bom.line" location_id = fields.Many2one( diff --git a/mrp_bom_location/report/__init__.py b/mrp_bom_location/report/__init__.py index 55d26865b..39674e504 100644 --- a/mrp_bom_location/report/__init__.py +++ b/mrp_bom_location/report/__init__.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# Copyright 2017 Eficent Business and IT Consulting Services S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import bom_structure diff --git a/mrp_bom_location/report/bom_structure.py b/mrp_bom_location/report/bom_structure.py index 4c7fa2d90..79d27a753 100644 --- a/mrp_bom_location/report/bom_structure.py +++ b/mrp_bom_location/report/bom_structure.py @@ -29,14 +29,14 @@ class bom_structure(report_sxw.rml_parse): res['location_name'] = l.location_id.complete_name or '' result.append(res) if l.child_line_ids: - if level<6: + if level < 6: level += 1 _get_rec(l.child_line_ids, level, qty=res['pqty']) - if level>0 and level<6: + if level > 0 and level < 6: level -= 1 return result - children = _get_rec(object,level) + children = _get_rec(object, level) return children