diff --git a/addons/account_report/report/print_indicator.py b/addons/account_report/report/print_indicator.py index 2952319b167..d7bd70f40e4 100644 --- a/addons/account_report/report/print_indicator.py +++ b/addons/account_report/report/print_indicator.py @@ -108,16 +108,16 @@ class accounting_report_indicator(report_sxw.rml_parse): return super(accounting_report_indicator,self).repeatIn(lst, name, nodes_parent=False) array_header = eval(data,{'year':'Fiscal Year','periods':'Periods'}) - value = [array_header] +# value = [array_header] + value = [] value.extend(self.header_name) - type=['string'] if name=='array': - type.extend(['float']*len(self.header_name)) + type = ['float']*len(self.header_name) else: - type=['lable'] * (len(self.header_name)+1) + type = ['lable'] * (len(self.header_name)) - width = [538/float(len(value))]*(len(value)) + width = [438/float(len(value))]*(len(value)) if not lst: lst.append(1) @@ -132,6 +132,7 @@ class accounting_report_indicator(report_sxw.rml_parse): width.append(30) for v in range(len(width)): width_str +=',%d'%width[v] + ns.setAttribute('colWidths',width_str) child_list = ns.childNodes diff --git a/addons/account_report/report/print_indicator.rml b/addons/account_report/report/print_indicator.rml index e0f3323311e..0015324ecbe 100644 --- a/addons/account_report/report/print_indicator.rml +++ b/addons/account_report/report/print_indicator.rml @@ -74,9 +74,9 @@ - - - + + + @@ -148,21 +148,27 @@ [[ repeatIn(getarray(data['form'],o,array_header=data['form']['select_base']),'array_header',td=len(data['form']['base_selection'][0][2]),data=data['form']['select_base']) or removeParentNode('section') ]] - + + + Indicators + - [[ repeatIn(lines(data['form']),'o')]] - [[ repeatIn(getarray(data['form'],o,array_header=data['form']['select_base']),'array',td=len(data['form']['base_selection'][0][2]),data=data['form']['select_base']) or removeParentNode('section') ]] - + [[ repeatIn(lines(data['form']),'obj')]] + [[ repeatIn(getarray(data['form'],obj,array_header=data['form']['select_base']),'array',td=len(data['form']['base_selection'][0][2]),data=data['form']['select_base']) or removeParentNode('section') ]] + - - + + + + + [['.....'*(obj['level']) ]][[ setTag('font','font',{'color':'white'}) ]][[ obj['code'] ]]