changeset 24a670b0fd66 in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset&node=24a670b0fd66
description:
Allow to execute reports without records
issue10409
review355391002
diffstat:
customer_return_restocking_list.fodt | 8 ++++----
delivery_note.fodt | 6 +++---
internal_shipment.fodt | 6 +++---
picking_list.fodt | 6 +++---
supplier_restocking_list.fodt | 6 +++---
5 files changed, 16 insertions(+), 16 deletions(-)
diffs (117 lines):
diff -r 18f23b78c468 -r 24a670b0fd66 customer_return_restocking_list.fodt
--- a/customer_return_restocking_list.fodt Mon Aug 30 00:27:13 2021 +0200
+++ b/customer_return_restocking_list.fodt Thu Sep 02 23:19:36 2021 +0200
@@ -393,15 +393,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>
@@ -488,4 +488,4 @@
<text:p text:style-name="Text_20_body"><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>
diff -r 18f23b78c468 -r 24a670b0fd66 delivery_note.fodt
--- a/delivery_note.fodt Mon Aug 30 00:27:13 2021 +0200
+++ b/delivery_note.fodt Thu Sep 02 23:19:36 2021 +0200
@@ -415,15 +415,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>
diff -r 18f23b78c468 -r 24a670b0fd66 internal_shipment.fodt
--- a/internal_shipment.fodt Mon Aug 30 00:27:13 2021 +0200
+++ b/internal_shipment.fodt Thu Sep 02 23:19:36 2021 +0200
@@ -423,15 +423,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>
diff -r 18f23b78c468 -r 24a670b0fd66 picking_list.fodt
--- a/picking_list.fodt Mon Aug 30 00:27:13 2021 +0200
+++ b/picking_list.fodt Thu Sep 02 23:19:36 2021 +0200
@@ -392,15 +392,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="P4"><text:placeholder
text:placeholder-type="text"><if
test="company.footer"></text:placeholder></text:p>
+ <text:p text:style-name="P4"><text:placeholder
text:placeholder-type="text"><if test="company and
company.footer"></text:placeholder></text:p>
<text:p text:style-name="P4"><text:placeholder
text:placeholder-type="text"><for each="line in
company.footer.split('\n')"></text:placeholder></text:p>
<text:p text:style-name="P4"><text:placeholder
text:placeholder-type="text"><line></text:placeholder></text:p>
<text:p text:style-name="P4"><text:placeholder
text:placeholder-type="text"></for></text:placeholder></text:p>
diff -r 18f23b78c468 -r 24a670b0fd66 supplier_restocking_list.fodt
--- a/supplier_restocking_list.fodt Mon Aug 30 00:27:13 2021 +0200
+++ b/supplier_restocking_list.fodt Thu Sep 02 23:19:36 2021 +0200
@@ -384,15 +384,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>