← Back to team overview

openerp-india team mailing list archive

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

 

Amit
Let"s take for example the common of incoming emails converted to
crm.leads.  A crm.lead object could represent a simple lead or an
opportunity, with different views.  From an incoming email, if I opem the
related object, I"ll get the lead view, even if the object is in fact an
opportunity. That is the reported problem
El 01/11/2013 06:41, "Amit Parik (OpenERP)" <amp@xxxxxxxxxxx> escribió:

> Hello Gustavo,
>
> Would you please provide the use case for this? , If yes then that will
> better for us to check this bug report.
>
> Thanks and waiting for your reply!
>
> ** Changed in: openobject-addons
>        Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1173783
>
> Title:
>   opening a related object from a mail message leads to incorrect action
>
> Status in OpenERP Addons (modules):
>   Incomplete
>
> 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
>

-- 
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):
  Incomplete

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


References