changeset 85d1bb950e2d in modules/account_statement:default
details:
https://hg.tryton.org/modules/account_statement?cmd=changeset&node=85d1bb950e2d
description:
Allow to execute reports without records
issue10409
review355391002
diffstat:
statement.fodt | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 078490d3ad08 -r 85d1bb950e2d statement.fodt
--- a/statement.fodt Sat Aug 21 09:09:55 2021 +0200
+++ b/statement.fodt Thu Sep 02 23:19:36 2021 +0200
@@ -443,15 +443,15 @@
<office:master-styles>
<style:master-page style:name="Standard" style:page-layout-name="pm1">
<style:header>
- <text:p text:style-name="P1"><text:placeholder
text:placeholder-type="text"><if
test="company.header"></text:placeholder></text:p>
+ <text:p text:style-name="P1"><text:placeholder
text:placeholder-type="text"><if test="company and
company.header"></text:placeholder></text:p>
<text:p text:style-name="P1"><text:placeholder
text:placeholder-type="text"><for each="line in
company.header.split('\n')"></text:placeholder></text:p>
<text:p text:style-name="P1"><text:placeholder
text:placeholder-type="text"><line></text:placeholder></text:p>
<text:p text:style-name="P1"><text:placeholder
text:placeholder-type="text"></for></text:placeholder></text:p>
<text:p text:style-name="P2"><text:placeholder
text:placeholder-type="text"></if></text:placeholder></text:p>
- <text:p text:style-name="P3"><text:placeholder
text:placeholder-type="text"><company.rec_name></text:placeholder></text:p>
+ <text:p text:style-name="P3"><text:placeholder
text:placeholder-type="text"><company.rec_name if company else
''></text:placeholder></text:p>
</style:header>
<style:footer>
- <text:p text:style-name="P2"><text:placeholder
text:placeholder-type="text"><if
test="company.footer"></text:placeholder></text:p>
+ <text:p text:style-name="P2"><text:placeholder
text:placeholder-type="text"><if test="company and
company.footer"></text:placeholder></text:p>
<text:p text:style-name="P2"><text:placeholder
text:placeholder-type="text"><for each="line in
company.footer.split('\n')"></text:placeholder></text:p>
<text:p text:style-name="P2"><text:placeholder
text:placeholder-type="text"><line></text:placeholder></text:p>
<text:p text:style-name="P2"><text:placeholder
text:placeholder-type="text"></for></text:placeholder></text:p>
@@ -560,4 +560,4 @@
<text:p text:style-name="P7"><text:placeholder
text:placeholder-type="text"></for></text:placeholder></text:p>
</office:text>
</office:body>
-</office:document>
\ No newline at end of file
+</office:document>