Skip to content

Commit

Permalink
Merge pull request #6 from oca-travis/7.0-autofix-script-01-dev-moylo…
Browse files Browse the repository at this point in the history
…p260

[REF] auto-fix conventions
  • Loading branch information
pedrobaeza committed Nov 20, 2014
2 parents d6aa488 + e8be5ef commit acfda86
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mrp_bom_product_details/__init__.py
Expand Up @@ -20,4 +20,4 @@
#
##############################################################################

import mrp_bom_product_details
from . import mrp_bom_product_details
2 changes: 1 addition & 1 deletion mrp_industrial_design_bom/report/__init__.py
Expand Up @@ -20,4 +20,4 @@
#
##############################################################################

import bom_structure_industrial_design
from . import bom_structure_industrial_design
Expand Up @@ -24,18 +24,19 @@


class bom_structure(report_sxw.rml_parse):

def __init__(self, cr, uid, name, context):
super(bom_structure, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
'time': time,
'get_children': self.get_children,
})

def get_children(self, object, level=0):
def get_children(self, obj, level=0):
result = []

def _get_rec(object, level):
for l in object:
def _get_rec(obj, level):
for l in obj:
res = {
'name': l.name,
'pname': l.product_id.name,
Expand All @@ -55,7 +56,7 @@ def _get_rec(object, level):
level -= 1
return result

children = _get_rec(object, level)
children = _get_rec(obj, level)

return children

Expand Down

0 comments on commit acfda86

Please sign in to comment.