Skip to content

Commit

Permalink
sale_delivery_date: sale report only display commitment_date if set
Browse files Browse the repository at this point in the history
  • Loading branch information
mmequignon committed Dec 1, 2023
1 parent 5def688 commit 6c6915a
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions sale_delivery_date/reports/sale_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,12 @@
<xpath expr="//p[@t-field='doc.validity_date']/.." position="after">
<div t-if="doc.display_expected_date_ok" class="col-auto mw-100 mb-2">
<strong>Expected delivery date:</strong>
<p
t-if="doc.commitment_date"
class="m-0"
t-field="doc.commitment_date"
t-options="{'date_only': 'True'}"
/>
<p
t-else=""
class="m-0"
t-field="doc.expected_date"
t-options="{'date_only': 'True'}"
/>
<t t-if="doc.commitment_date">
<p class="m-0" t-field="doc.commitment_date" t-options="{'date_only': 'True'}"/>
</t>
<t t-else="">
<p class="m-0" t-field="doc.expected_date" t-options="{'date_only': 'True'}"/>
</t>
</div>
</xpath>
</template>
Expand Down

0 comments on commit 6c6915a

Please sign in to comment.