[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) <vfe@odoo.com>
This commit is contained in:
Valeriya(vchu)
2023-10-17 05:28:53 +00:00
parent 485e944f27
commit 096fdd3eef
+1
View File
@@ -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):