Merge lp:~openerp-dev/openobject-addons/7.0-opw-596231-rgo into lp:openobject-addons/7.0
Status: | Merged |
---|---|
Approved by: | Naresh(OpenERP) |
Approved revision: | no longer in the source branch. |
Merged at revision: | 9664 |
Proposed branch: | lp:~openerp-dev/openobject-addons/7.0-opw-596231-rgo |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
26 lines (+4/-1) 2 files modified
crm/wizard/crm_lead_to_opportunity.py (+3/-0) crm/wizard/crm_lead_to_opportunity_view.xml (+1/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-596231-rgo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Naresh(OpenERP) (community) | Approve | ||
Review via email: mp+179859@code.launchpad.net |
Description of the change
Steps to reproduce:
1) Create a record for lead, select a customer(onchange partner will set it's related fields),
2) Remove the value for that customer and save it,
3) Launch the "Convert to Opportunity" wizard and choose any option other than 'Link to an existing customer' and create opportunity.
Result Expected:
If "Create a new customer" was selected, it should create a new customer and link it to the opportunity and if "Do not link to a customer" was selected, it should have created the opportunity with no customer selected.
Current Result:
Once the system suggested any existing partner to link with, it does not serve the expected result for options "Create a new customer" and "Do not link to a customer" and always link the suggested partner to that opportunity.
Issue is caused as once the system suggested partner was set in the wizard and when the other options selected it simply just hid the partner field and never cleared it's value which then going to be passed to _create_
I have fixed it by clearing the partner by mean of an onchange on the action field.
Kindly review the fix.
Thanks.
LGTM