Split line description only if not None

issue11174
review397151006
This commit is contained in:
Adrià Tarroja Caubet
2022-01-25 10:01:02 +01:00
parent 9beb9697f3
commit fedb2faeb8
+2
View File
@@ -684,9 +684,11 @@
</table:table-row>
<table:table-row>
<table:table-cell table:style-name="Tableau1.A3" office:value-type="string">
<text:p text:style-name="P26"><text:placeholder text:placeholder-type="text">&lt;if test=&quot;quotation_line.description&quot;&gt;</text:placeholder></text:p>
<text:p text:style-name="P26"><text:placeholder text:placeholder-type="text">&lt;for each=&quot;description in quotation_line.description.split(&apos;\n&apos;)&quot;&gt;</text:placeholder></text:p>
<text:p text:style-name="P26"><text:placeholder text:placeholder-type="text">&lt;description&gt;</text:placeholder></text:p>
<text:p text:style-name="P26"><text:placeholder text:placeholder-type="text">&lt;/for&gt;</text:placeholder></text:p>
<text:p text:style-name="P26"><text:placeholder text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Tableau1.A3" office:value-type="string">
<text:p text:style-name="P17"><text:placeholder text:placeholder-type="text">&lt;format_number_symbol(quotation_line.quantity, quotation.supplier.lang, quotation_line.unit, digits=quotation_line.unit.digits) if quotation_line.unit else format_number(quotation_line.quantity, quotation.supplier.lang)&gt;</text:placeholder></text:p>