← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 714620] Re: Partner category search only operates on leaf category name

 

Hello Daniel Watkins,

The whole category name comes from the "complete_name" field in
res.partner.category object which is a function field and not stored in
database. And this name comes form the name_get method in res.partner
object

So the search comes from only the category name not from it's parent
name.

If you wanted to do this then you can customize code at your side using
fnct_search method. This method makes a function field to be a search-
able.

Hope you will be agree with this.

Thanks.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/714620

Title:
  Partner category search only operates on leaf category name

Status in OpenERP Modules (addons):
  New

Bug description:
  The below assumes using the GTK client, as the web client currently
  has issues searching partners by category (bug 714610).

  Steps to reproduce:
    1) Load a database containing Partners in Partner Categories (the demonstration data works fine for this; I will assume you're using that from here on in).
    2) Navigate to the Customers view (Sales > Address Book > Customers).
    3) Enter "openerp" into the Categories field and press Search.

  Observed behaviour:
    No results.

  Expected behaviour:
    The list of all customers who are in the "Customer / OpenERP Partners" category or its children (i.e. "Customer / OpenERP Partners / Gold", "Customer / OpenERP Partners / Basic", "Customer / OpenERP Partners / Starter").

  Versions used:
    Server and GTK client 6.0.1.





References