← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 659891] [NEW] import bug and fix

 

Public bug reported:


During the import of a chart of accounts, the parent name can have spaces in it, for example "Balance Sheet".  But the import function chops the string and does a search just on the first word ex. "Balance", instead of using the entire string.

FIX:
In function account.account, function name_search, 

 if not ids and len(name.split()) >= 2:
                ids = self.search(cr, user, [('code', operator, name.split()[0]), ('name', operator, ' '.join(name.split()[1:]))]+ args, limit=limit)

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

-- 
import bug and fix
https://bugs.launchpad.net/bugs/659891
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject Addons Modules: New

Bug description:

During the import of a chart of accounts, the parent name can have spaces in it, for example "Balance Sheet".  But the import function chops the string and does a search just on the first word ex. "Balance", instead of using the entire string.

FIX:
In function account.account, function name_search, 

 if not ids and len(name.split()) >= 2:
                ids = self.search(cr, user, [('code', operator, name.split()[0]), ('name', operator, ' '.join(name.split()[1:]))]+ args, limit=limit)





Follow ups

References