← Back to team overview

openerp-india team mailing list archive

[Bug 1313384] [NEW] [7.0] Account Journal code blocks name search

 

Public bug reported:

Create two account journals: 
 - 'XYZ Bank' with code 'XYZ'
 - 'XYZ Bank USD' with code 'BNK2'

In Journal Entries filter, type 'XY', the search box shows only the
first journal (XYZ Bank), the second account is not shown. If you type
'XYZ Bank', the box shows both accounts.

Cause:

In account.journal.name_search(), instead of searching both name and
code (as it currently does in Trunk), the code is searched first and
journal name is only searched if no result found. In the above example,
code search for 'XY' returns the first account only so name is not
searched. But, if we searched for 'XYZ Bank', code search fails and name
search returns both journals.

** Affects: openobject-addons
     Importance: Undecided
         Status: New


** Tags: account journal

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

Title:
  [7.0] Account Journal code blocks name search

Status in OpenERP Addons (modules):
  New

Bug description:
  Create two account journals: 
   - 'XYZ Bank' with code 'XYZ'
   - 'XYZ Bank USD' with code 'BNK2'

  In Journal Entries filter, type 'XY', the search box shows only the
  first journal (XYZ Bank), the second account is not shown. If you type
  'XYZ Bank', the box shows both accounts.

  Cause:

  In account.journal.name_search(), instead of searching both name and
  code (as it currently does in Trunk), the code is searched first and
  journal name is only searched if no result found. In the above
  example, code search for 'XY' returns the first account only so name
  is not searched. But, if we searched for 'XYZ Bank', code search fails
  and name search returns both journals.

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


Follow ups

References