changeset 7f7838674289 in modules/purchase_request_quotation:default
details: 
https://hg.tryton.org/modules/purchase_request_quotation?cmd=changeset&node=7f7838674289
description:
        Allow to execute reports without records

        issue10409
        review355391002
diffstat:

 quotation.fodt |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r a9c0af17b9a6 -r 7f7838674289 quotation.fodt
--- a/quotation.fodt    Mon Aug 30 00:27:13 2021 +0200
+++ b/quotation.fodt    Thu Sep 02 23:19:36 2021 +0200
@@ -598,15 +598,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">&lt;if 
test=&quot;company.header&quot;&gt;</text:placeholder></text:p>
+    <text:p text:style-name="P1"><text:placeholder 
text:placeholder-type="text">&lt;if test=&quot;company and 
company.header&quot;&gt;</text:placeholder></text:p>
     <text:p text:style-name="P1"><text:placeholder 
text:placeholder-type="text">&lt;for each=&quot;line in 
company.header.split(&apos;\n&apos;)&quot;&gt;</text:placeholder></text:p>
     <text:p text:style-name="P1"><text:placeholder 
text:placeholder-type="text">&lt;line&gt;</text:placeholder></text:p>
     <text:p text:style-name="P1"><text:placeholder 
text:placeholder-type="text">&lt;/for&gt;</text:placeholder></text:p>
     <text:p text:style-name="P2"><text:placeholder 
text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:p>
-    <text:p text:style-name="P3"><text:placeholder 
text:placeholder-type="text">&lt;company.rec_name&gt;</text:placeholder></text:p>
+    <text:p text:style-name="P3"><text:placeholder 
text:placeholder-type="text">&lt;company.rec_name if company else 
''&gt;</text:placeholder></text:p>
    </style:header>
    <style:footer>
-    <text:p text:style-name="P4"><text:placeholder 
text:placeholder-type="text">&lt;if 
test=&quot;company.footer&quot;&gt;</text:placeholder></text:p>
+    <text:p text:style-name="P4"><text:placeholder 
text:placeholder-type="text">&lt;if test=&quot;company and 
company.footer&quot;&gt;</text:placeholder></text:p>
     <text:p text:style-name="P4"><text:placeholder 
text:placeholder-type="text">&lt;for each=&quot;line in 
company.footer.split(&apos;\n&apos;)&quot;&gt;</text:placeholder></text:p>
     <text:p text:style-name="P4"><text:placeholder 
text:placeholder-type="text">&lt;line&gt;</text:placeholder></text:p>
     <text:p text:style-name="P4"><text:placeholder 
text:placeholder-type="text">&lt;/for&gt;</text:placeholder></text:p>

Reply via email to