← Back to team overview

openerp-india team mailing list archive

[Bug 971627] Re: search on res.partner.address as field one2many is only zip search

 

Hello Antoine,

My detailed investigation said that the name_search method is working
perfect.

The original problem resides in OpenERP Kernel (expression.py) which
evaluates the domains and calls the different search methods within the
server.

As a part of the fix, I have attached a patch and I am sure it will work
for you.

Additionally, Talking about the question you asked:
-  How args work : args will have values only in the case of domains. E.g. Go to Event form(event module), or Delivery Order where Address is a many2one field, over there if that field has any domain, you would get the value or args.

Thinking globally, this problem is linked to expression.py and should be
addressed for the fix.

I replicated the problem by putting sale order line on sale Order's search panel and faced the issue.
The issue is, while GTK calls any name_search, server treats the limit as default value(because gtk passes limit only and only if the limit is supplied/chosen). BUT, when name_search is called by expression.py in order to perform search on one2many field, it passes limit=None which is totally unfair.

I will patch the server very soon and you will feel the bug-free
behavior.

Jignesh, if I am not wrong, the parser stays same for trunk too and it
should also have this bug.

Thanks,
Hitesh Panara,
Serpent Consulting Services.

** Patch added: "Antoine_SerpentCS.patch"
   https://bugs.launchpad.net/openobject-server/+bug/971627/+attachment/3008877/+files/Antoine_SerpentCS.patch

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

Title:
  search on res.partner.address as field one2many is only zip search

Status in OpenERP Server:
  Won't Fix

Bug description:
  From openerp 6.1.

  In res.partner.address, name_search make a search only on zip.
  For example, if you want to search an adress (imagine a contact address) in partner search view, you can't search by name but only by zip.

  I don't understand the new search method.
  How args var must be use and past?
  We don't use base_contact module.

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


References