[FIX] analytic: optimize name_search for large databases
[FIX] analytic: optimize name_search for large databases

On databases with a large number of res.partner entries,
the extended name_search of analytic accounts was prohibitively
slow, due to the expensive name_search on res.partner.

Restricting the search to the partner name is extremely
similar business-wise, but makes a huge difference in
terms of speed. E.g. sub-second results vs 10+ minutes
for a database with 30k analytic accounts and 600k partners.

dfang/odoo,laslabs/odoo,stephen144/odoo,dfang/odoo,microcom/odoo,storm-computers/odoo,hip-odoo/odoo,Elico-Corp/odoo_OCB,dfang/odoo,bplancher/odoo,sysadminmatmoz/OCB,optima-ict/odoo,bplancher/odoo,storm-computers/odoo,storm-computers/odoo,sysadminmatmoz/OCB,bplancher/odoo,sysadminmatmoz/OCB,microcom/odoo,dfang/odoo,storm-computers/odoo,ygol/odoo,laslabs/odoo,optima-ict/odoo,ygol/odoo,optima-ict/odoo,hip-odoo/odoo,optima-ict/odoo,dfang/odoo,ygol/odoo,sysadminmatmoz/OCB,ygol/odoo,ygol/odoo,laslabs/odoo,hip-odoo/odoo,hip-odoo/odoo,hip-odoo/odoo,stephen144/odoo,laslabs/odoo,storm-computers/odoo,ygol/odoo,Elico-Corp/odoo_OCB,bplancher/odoo,stephen144/odoo,microcom/odoo,laslabs/odoo,sysadminmatmoz/OCB,dfang/odoo,storm-computers/odoo,Elico-Corp/odoo_OCB,bplancher/odoo,ygol/odoo,microcom/odoo,Elico-Corp/odoo_OCB,sysadminmatmoz/OCB,hip-odoo/odoo,sysadminmatmoz/OCB,optima-ict/odoo,microcom/odoo,Elico-Corp/odoo_OCB,laslabs/odoo,optima-ict/odoo,bplancher/odoo,stephen144/odoo,Elico-Corp/odoo_OCB,microcom/odoo,stephen144/odoo,stephen144/odoo