From: Xavier ALT Date: Thu, 6 Dec 2012 12:55:58 +0000 (+0100) Subject: [FIX] account: force profit/loss to display balance of *zero* positively X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=0d203140ce05a13eb775c5468b2b364c8dd07ff3;p=odoo%2Fodoo.git [FIX] account: force profit/loss to display balance of *zero* positively bzr revid: xal@openerp.com-20121206125558-xc00tpo3vguj7zk5 --- diff --git a/addons/account/report/account_profit_horizontal.rml b/addons/account/report/account_profit_horizontal.rml index 1c4407d..9db8214 100644 --- a/addons/account/report/account_profit_horizontal.rml +++ b/addons/account/report/account_profit_horizontal.rml @@ -235,7 +235,7 @@ - [[ a['level1']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font') ]][[(a['code1'] and a['name1']) and formatLang(-a['balance1']) or removeParentNode('font') ]] [[ company.currency_id.symbol ]] + [[ a['level1']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font') ]][[(a['code1'] and a['name1']) and formatLang(-a['balance1'] or 0.0) or removeParentNode('font') ]] [[ company.currency_id.symbol ]] diff --git a/addons/account/report/account_profit_loss.rml b/addons/account/report/account_profit_loss.rml index d2ab00d..f6fb7f2 100644 --- a/addons/account/report/account_profit_loss.rml +++ b/addons/account/report/account_profit_loss.rml @@ -274,7 +274,7 @@ - [[ a.level<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font') ]][[ formatLang(-a.balance) ]] [[ company.currency_id.symbol ]] + [[ a.level<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font') ]][[ formatLang(-a.balance or 0.0) ]] [[ company.currency_id.symbol ]]