diff --git a/addons/account/report/account_financial_report.rml b/addons/account/report/account_financial_report.rml index 91694c6b902..be2e349bd0c 100644 --- a/addons/account/report/account_financial_report.rml +++ b/addons/account/report/account_financial_report.rml @@ -220,9 +220,9 @@ [[ (a.get('level') <> 0) or removeParentNode('tr') ]] [[ setTag('tr','tr',{'style': 'Table'+str(min(3,'level' in a and a.get('level') or 1))}) ]] [[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a.get('level')))+'_name'}) ]][[ a.get('name') ]] - [[ a.get('account_type') =='view' or removeParentNode('td') ]] + [[ (a.get('account_type') =='view' and a.get('level') <> 1) or removeParentNode('td') ]] [[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a.get('level')))+'_balance'}) ]][[ formatLang(a.get('balance'), currency_obj = company.currency_id) ]] - [[ a.get('account_type') <>'view' or removeParentNode('td') ]] + [[ (a.get('account_type') <>'view' or a.get('level') == 1) or removeParentNode('td') ]] [[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a.get('level')))+'_balance'}) ]][[ formatLang(a.get('balance'), currency_obj = company.currency_id) ]] @@ -247,13 +247,13 @@ [[ (a.get('level') <> 0) or removeParentNode('tr') ]] [[ setTag('tr','tr',{'style': 'Table'+str(min(3,'level' in a and a.get('level') or 1))}) ]] [[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a.get('level')))+'_name'}) ]][[ a.get('name') ]] - [[ a.get('account_type') =='view' or removeParentNode('td') ]] + [[ (a.get('account_type') =='view' and a.get('level') <> 1) or removeParentNode('td') ]] [[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a.get('level')))+'_balance'}) ]][[ formatLang(a.get('balance'), currency_obj = company.currency_id) ]] - [[ a.get('account_type') <>'view' or removeParentNode('td') ]] + [[ (a.get('account_type') <>'view' or a.get('level') == 1) or removeParentNode('td') ]] [[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a.get('level')))+'_balance'}) ]][[ formatLang(a.get('balance'), currency_obj = company.currency_id) ]] - [[ a.get('account_type') =='view' or removeParentNode('td') ]] + [[ (a.get('account_type') =='view' and a.get('level') <> 1) or removeParentNode('td') ]] [[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a.get('level')))+'_balance'}) ]][[ formatLang(a.get('balance_cmp'), currency_obj = company.currency_id) ]] - [[ a.get('account_type') <>'view' or removeParentNode('td') ]] + [[ (a.get('account_type') <>'view' or a.get('level') == 1) or removeParentNode('td') ]] [[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a.get('level')))+'_balance'}) ]][[ formatLang(a.get('balance_cmp'), currency_obj = company.currency_id) ]]