Comment 1 for bug 1208436

Revision history for this message
Ravi Gohil (OpenERP) (rgo-openerp) wrote :

Hi,

Thanks for the clear description, it helped reproduce the issue quickly.

However, the root cause of the issue lies in the wizard itself, i.e. once the wizard set the automatically suggested partner in partner field and when one selected the other options than "Link to an existing customer", it just hid the partner field but never cleared the value of it, and thus, the partner value always going to be there in data(_create_partner(...)) and hence resulting into this bug.

So, it is better to fix the issue by clearing the partner when the wizard tells not to link the opportunity to an existing partner. This can be done by introducing an onchange(...) on the "action" field.

I will soon create a branch with the fix and link it to this bug.

Thanks.