summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemali Bhimani <heb@odoo.com>2020-02-28 10:00:08 +0000
committerHemali Bhimani <heb@odoo.com>2020-03-04 04:53:59 +0000
commit74f7660ccbc3a2463ffda1f53e5c81bd70590b7f (patch)
tree55236b01a26792c89b6317c2954cd79c1b572091
parentd6b854306cae245343a7acb9edc4178d245a49fe (diff)
[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>
-rw-r--r--addons/sale_stock/views/sale_stock_portal_template.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/sale_stock/views/sale_stock_portal_template.xml b/addons/sale_stock/views/sale_stock_portal_template.xml
index a781a04c3b5..775de492d19 100644
--- a/addons/sale_stock/views/sale_stock_portal_template.xml
+++ b/addons/sale_stock/views/sale_stock_portal_template.xml
@@ -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>