← Back to team overview

openerp-india team mailing list archive

[Bug 1173783] Re: opening a related object from a mail message leads to incorrect action

 

[Expired for OpenERP Addons because there has been no activity for 60
days.]

** Changed in: openobject-addons
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1173783

Title:
  opening a related object from a mail message leads to incorrect action

Status in OpenERP Addons (modules):
  Expired

Bug description:
  If you open the related object from a mail message, if the model has
  several actions depending on some attribute (like crm.lead, which can
  be a lead or an opportunity depending on the type field), the wrong
  action could be triggered.

  In the current code, the first action is triggered, without checking
  if it is the right one. For example, an opportunity could be open as a
  lead, not showing several fields and allowing you to convert the lead
  into an opportunity again (including some bugs in this invalid
  operation)

  Attached you will find a patch that select the right action based on
  the domain of the action. At least works for the crm.lead case

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1173783/+subscriptions