changeset 1e2f5cb3760f in modules/purchase:default
details: https://hg.tryton.org/modules/purchase?cmd=changeset&node=1e2f5cb3760f
description:
Allow to execute reports without records
issue10409
review355391002
diffstat:
purchase.fodt | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 788f0b59e954 -r 1e2f5cb3760f purchase.fodt
--- a/purchase.fodt Mon Aug 30 00:27:13 2021 +0200
+++ b/purchase.fodt Thu Sep 02 23:19:36 2021 +0200
@@ -551,15 +551,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>