diff options
| author | jvm-odoo <jvm@odoo.com> | 2019-11-22 08:00:23 +0000 |
|---|---|---|
| committer | jvm-odoo <jvm@odoo.com> | 2019-11-22 08:00:23 +0000 |
| commit | 5ff3bec51b69cc5ff94e46282beea0cb0d156520 (patch) | |
| tree | 8c2af70788dc4029c9b057086c20566682a37b4a | |
| parent | 82df1dfccc6b4e3031b1434c7ec1bec2bf7aeb2d (diff) | |
[FIX] sale_crm: fix crm quotation context
Reproduce the issue
- Install CRM & sale_crm
- Create an opportunity
- Create a quotation from the opportunity
The name of the draft is the opportunity's name instead of "New"
- Add a "Storage Box" to the quotation, for instance
- Confirm the quotation
- Check the delivery note
The name of the delivery note is the opportunity's name instead of
WH/OUT/...
Cause
This issue is caused by 4c9c249c. It seems that we pass an extra
default_name in the context.
This commit removes the extra default_name from the context.
OPW-2122928
closes odoo/odoo#40943
X-original-commit: e8d91e4a7037d6c05991debb91072de162f0cf56
Signed-off-by: Jason Van Malder <jasonvanmalder@users.noreply.github.com>
| -rw-r--r-- | addons/sale_crm/models/crm_lead.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/sale_crm/models/crm_lead.py b/addons/sale_crm/models/crm_lead.py index f44cc6ecd1c..0c4dd37297a 100644 --- a/addons/sale_crm/models/crm_lead.py +++ b/addons/sale_crm/models/crm_lead.py @@ -79,7 +79,6 @@ class CrmLead(models.Model): 'default_campaign_id': self.campaign_id.id, 'default_medium_id': self.medium_id.id, 'default_origin': self.name, - 'default_name': self.name, 'default_source_id': self.source_id.id, 'default_company_id': self.company_id.id or self.env.company.id, } |
