fix problem at printout with earliest_schedule_date if there are only 'service'-items (no delivery)

develop
Andreas Osim 2021-09-24 09:12:15 +02:00
parent e5830f82d8
commit eb13ac50bf
1 changed files with 8 additions and 2 deletions

View File

@ -103,8 +103,14 @@
<strong>
<span class="col-xs-8" style="padding: 0px;width: 58%;font-size:12px;padding-top: 3px;">Lieferdatum ab Werk:</span>
</strong>
<span class="col-xs-4" style="padding: 0px;width: 42%;" t-field="o.earliest_scheduled_date"
t-options='{"widget": "date"}'/>
<t t-if="o.earliest_scheduled_date">
<span class="col-xs-4" style="padding: 0px;width: 42%;" t-field="o.earliest_scheduled_date"
t-options='{"widget": "date"}'/>
</t>
<t t-else="">
<span class="col-xs-4" style="padding: 0px;width: 42%;" t-field="o.delivery_date"
t-options='{"widget": "date"}'/>
</t>
</t>
<t t-if="o.state in ['draft','sent'] and o.validity_date">
<strong>