← Back to team overview

openerp-india team mailing list archive

[Bug 1059561] Re: "plugin" bugs with prefixed emails

 

Hello,

Acually I've been digging around a bit and just replacing with "=" doesn't exactly respect the norm. The norm states the the domain part of the email address should be case insensitive.
But that seems like an unreasonable amount of work for what you get out of it.
Just thought it was worth posting even if it's not worth implementing.

Thanks a lot for that fix.
I can't find an "accept the fix" functionality or a way to give you credit for fixing it so I'll assume it doesn't exist.
Please tell me if I missed it.

Regards

-- 
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/1059561

Title:
  "plugin" bugs with prefixed emails

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  Hello,

  In the current implementation of the "plugin" addon, in the file "plugin_handler.py", the function "partner_get" handles the search with:
  ('email', 'like', address_email)

  This causes the partner with the email 'partner@xxxxxxxxxxx' to match with an existing 'other_partner@xxxxxxxxxxx'.
  simply replacing the previous search statement with
  ('email', '=', address_email)
  fixes the problem.

  Reproduce:
  Clean install of OERP 6.1
  Install a mailer plugin (TB or outlook)
  Clean install of Thunderbird or outlook
  Create a partner/contact in OERP whose email corresponds to a prefixed version of one of the emails you have in your inbox.
  Export the said email as a partner

  Expected:
  Mailer window proposing you to create a contact
  Instead:
  Opens a browser window with the "prefixed partner" displayed.

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


References