From 096fdd3eef545344fbf4147a327523cf33c97274 Mon Sep 17 00:00:00 2001 From: "Valeriya(vchu)" Date: Fri, 22 Sep 2023 16:35:53 +0200 Subject: [PATCH] [FIX] sale_crm: fix showing archived tax in quotation before this commit when the user created new quotation from Contact/Opportunity/Quotation archived taxes were added to the quotation because the context was active_test = false after this commit the context is configured back to active_test = true when creating quotation opw-3470555 closes odoo/odoo#138829 X-original-commit: 5970132a809c7cfe2a935b961284150e24aaf93f Signed-off-by: Victor Feyens (vfe) --- addons/sale_crm/models/crm_lead.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/sale_crm/models/crm_lead.py b/addons/sale_crm/models/crm_lead.py index e4272d1aaab..8d95e4b3b73 100644 --- a/addons/sale_crm/models/crm_lead.py +++ b/addons/sale_crm/models/crm_lead.py @@ -39,6 +39,7 @@ class CrmLead(models.Model): action = self.env["ir.actions.actions"]._for_xml_id("sale_crm.sale_action_quotations_new") action['context'] = self._prepare_opportunity_quotation_context() action['context']['search_default_opportunity_id'] = self.id + action['context']['active_test'] = True return action def action_view_sale_quotation(self):