From 3ec104ed3c8af192ea906deb0dd8c75f0259dea9 Mon Sep 17 00:00:00 2001 From: "Tiffany Chang (tic)" Date: Wed, 19 Feb 2020 12:32:17 +0000 Subject: [PATCH] [IMP] sale_stock: Show only 2 dates after delivery In order to ease user comparison of expected vs actual delivery date in sales orders, we make it so there are only 2 dates displayed in the form related to expected/actual delivery dates. This is done by hiding the 'expected_date' after the first delivery has occurred (i.e. 'effective_date' is non-empty) when a 'commitment_date' value is set. If no 'commitment_date' value is set, then we display the 'expected_date' so users still have a date to compare to. This is addresses specification 10 of overall usability improvement task. closes odoo/odoo#45724 Task: 2041853 Related: odoo/enterprise#8566 Related: odoo/upgrade#904 Signed-off-by: Simon Lejeune (sle) --- addons/sale/views/sale_views.xml | 2 +- addons/sale_stock/views/sale_order_views.xml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/addons/sale/views/sale_views.xml b/addons/sale/views/sale_views.xml index 4a61ad3ba35..e0a86e5d9ac 100644 --- a/addons/sale/views/sale_views.xml +++ b/addons/sale/views/sale_views.xml @@ -663,7 +663,7 @@