[IMP] sale_crm: remove default 'Customer' filter
When going to quotations from a lead by clicking on a stat button, the result we see can sometimes be inconsistent with the count of a stat button (count can be higher than the quotation we see). This happens because we set a default filter which shows quotations only for the contact set on the current lead. However, even if the contact's company is set on another quotations, we should see them since they are considered for the stat button data. This commit removes the default 'Customer' filter and thus allowing also to see the quotation linked to customer's company. This does not have any side effect because the default domain makes sure that quotations we see are linked with current opportunity only. task-2859354 closes odoo/odoo#91898 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
committed by
Dharmraj Jhala
parent
216f8b9069
commit
a0ae236a20
@@ -73,7 +73,6 @@ class CrmLead(models.Model):
|
||||
""" Prepares the context for a new quotation (sale.order) by sharing the values of common fields """
|
||||
self.ensure_one()
|
||||
quotation_context = {
|
||||
'search_default_partner_id': self.partner_id.id,
|
||||
'default_opportunity_id': self.id,
|
||||
'default_partner_id': self.partner_id.id,
|
||||
'default_campaign_id': self.campaign_id.id,
|
||||
|
||||
Reference in New Issue
Block a user