From a4d5999471255fdc6cbc7589565abf2ec83d12fa Mon Sep 17 00:00:00 2001 From: roen-odoo Date: Fri, 14 Jan 2022 10:58:18 +0000 Subject: [PATCH] [FIX] sale : Show SO with archived customer Current behavior: When archiving a customer contact, the SO linked to this customer where not shown after clicking sales smart button in company Steps to reproduce: 1. App "Contacts": Have a company and a contact as child of this company. 2. App "Sale": Create a Sale Order for the contact of the company and confirm it. 3. App "Contacts": Archive the contact of the company and switch to the company. 4. App "Contacts": The Smart Button for sale orders says it has one sale order but if you click on it NO sale orders will be shown. opw-2735060 closes odoo/odoo#82796 X-original-commit: f22364c32ac1438ededd611578b64a69186d7c9c Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: Engels Robin (roen) --- addons/sale/views/res_partner_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/views/res_partner_views.xml b/addons/sale/views/res_partner_views.xml index b9fe9b942de..277069ec80a 100644 --- a/addons/sale/views/res_partner_views.xml +++ b/addons/sale/views/res_partner_views.xml @@ -5,7 +5,7 @@ Quotations and Sales sale.order tree,form,graph - {'search_default_partner_id': active_id, 'default_partner_id': active_id} + {'search_default_partner_id': active_id, 'default_partner_id': active_id, 'active_test': False}