From 15a62b155b5eac1363892d5dbaa5e37cd39dbade Mon Sep 17 00:00:00 2001 From: "Xavier BOL (xbo)" Date: Mon, 22 Nov 2021 16:27:29 +0000 Subject: [PATCH] [FIX] sale_project: not display project stat button when SO is draft Before this commit, when the user creates a quotation and add a SOL with product contained a project in `project_id` field, the 'Project Overview' stat button is shown even if the quotation is not confirmed. This commit changes the visibility condition of this button to display it only if at least a project is contained in `project_ids` field of `sale.order` model and if the quotation is confirmed that is when the quotation becomes a sales order. Step to reproduce: ================= 1) Go to the Sales app 2) Click on 'Create' button to create a quotation. 3) Add a SOL with 'Customer Care (Prepaid Hours)' product Actual Behavior: =============== The 'Project Overview' stat button is displayed. Expected Behavior: ================= This stat button should not be displayed while the quotation is not confirmed to become a sales order. task-2697063 closes odoo/odoo#80408 X-original-commit: ed58a99a235e4116a13982a4615c1fc8948a6ecd Signed-off-by: Laurent Stukkens (ltu) Signed-off-by: Xavier --- addons/sale_project/views/sale_order_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_project/views/sale_order_views.xml b/addons/sale_project/views/sale_order_views.xml index 0693de91e12..7c92a1b4aef 100644 --- a/addons/sale_project/views/sale_order_views.xml +++ b/addons/sale_project/views/sale_order_views.xml @@ -8,7 +8,7 @@ 10 -