fix travis

This commit is contained in:
Lois Rilo
2018-02-14 12:40:00 +01:00
committed by rgarnau
parent cffa6df47a
commit 0a7926fdb8
5 changed files with 4 additions and 7 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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(

View File

@@ -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

View File

@@ -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