[IMP] sale_stock: change 'date' on 'Sales Order Portal Content'

Currently on a Sales Order Portal view, the field 'date'
under the delivery order shows the creation date of deliveries
linked to the SO,
After this commit it should display the 'effective date'
(or'scheduled date' if not yet delivered) of deliveries linked to
the SO

task:2180525

closes odoo/odoo#46633

Closes: #46633
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Hemali Bhimani
2020-03-04 04:53:59 +00:00
parent d6b854306c
commit 74f7660ccb
@@ -21,7 +21,10 @@
<a t-att-href="delivery_report_url">
<span t-esc="i.name"/>
</a>
<div class="small d-lg-inline-block ml-3">Date: <span class="text-muted" t-field="i.date" t-options="{'date_only': True}"/></div>
<div class="small d-lg-inline-block ml-3">Date:
<span class="text-muted" t-field="i.date_done" t-options="{'date_only': True}"/>
<span t-if="i.state in ['draft', 'waiting', 'confirmed', 'assigned']" class="text-muted" t-field="i.scheduled_date" t-options="{'date_only': True}"/>
</div>
</div>
<span t-if="i.state == 'done'" class="small badge badge-success orders_label_text_align"><i class="fa fa-fw fa-truck"/> <b>Shipped</b></span>
<span t-if="i.state == 'cancel'" class="small badge badge-danger orders_label_text_align"><i class="fa fa-fw fa-times"/> <b>Cancelled</b></span>