details:   https://code.tryton.org/tryton/commit/fe91cb4f7748
branch:    default
user:      Adrià Tarroja Caubet <[email protected]>
date:      Thu Jan 08 17:37:09 2026 +0100
description:
        Test model context in type statement report against the right name of 
context

        There is a typo in the model context of 
'account.balance_sheet.comparison.context'.

        Closes #14628
diffstat:

 modules/account/type_statement.fodt |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 74e03666d782 -r fe91cb4f7748 modules/account/type_statement.fodt
--- a/modules/account/type_statement.fodt       Mon Feb 16 19:19:01 2026 +0100
+++ b/modules/account/type_statement.fodt       Thu Jan 08 17:37:09 2026 +0100
@@ -536,7 +536,7 @@
    <text:p text:style-name="P25">From Date: <text:placeholder 
text:placeholder-type="text">&lt;format_date(ctx.from_date, user.language) if 
ctx.from_date else &apos;&apos;&gt;</text:placeholder><text:s/>To 
<text:placeholder text:placeholder-type="text">&lt;format_date(ctx.to_date, 
user.language) if ctx.to_date else &apos;&apos;&gt;</text:placeholder></text:p>
    <text:p text:style-name="P24"><text:placeholder 
text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:p>
    <text:p text:style-name="P24"><text:placeholder 
text:placeholder-type="text">&lt;/when&gt;</text:placeholder></text:p>
-   <text:p text:style-name="P24"><text:placeholder 
text:placeholder-type="text">&lt;when 
test=&quot;data.get(&apos;model_context&apos;) in 
[&apos;account.balance_sheet.context&apos;, 
&apos;account.balance_sheet.comparision.context&apos;]&quot;&gt;</text:placeholder></text:p>
+   <text:p text:style-name="P24"><text:placeholder 
text:placeholder-type="text">&lt;when 
test=&quot;data.get(&apos;model_context&apos;) in 
[&apos;account.balance_sheet.context&apos;, 
&apos;account.balance_sheet.comparison.context&apos;]&quot;&gt;</text:placeholder></text:p>
    <text:p text:style-name="P28">Balance Sheet</text:p>
    <text:p text:style-name="P26">Date: <text:placeholder 
text:placeholder-type="text">&lt;format_date(ctx.date, user.language) if 
ctx.date else &apos;&apos;&gt;</text:placeholder></text:p>
    <text:p text:style-name="P24"><text:placeholder 
text:placeholder-type="text">&lt;/when&gt;</text:placeholder></text:p>

Reply via email to