I didn’t understand what is happening,
Firstly, typing in filter ‘adresses.zip: %1000%’ do nothing with the serach. It doesn’t filter out results at all.
I am using module overriding. Th following code works when you invoke search from purchase module.
# This is a variable list like ['90210','90215','90211','90199'.....] range_zip_codes = fields.Function(fields.Text("ZIP List"),"get_install_range_list") #### This is a subset of perties that has category = installer. It also has a ZIP in the address... #### when install_range equal 0 I don't want to limit the search to a particular ZIP installers = fields.Many2Many('purchase.purchase-installers.party.party', 'purchase', 'installer', string = 'Installers for this purchase', help = 'Installers related to this sale', filter = , domain = [ ('categories.installer', '=', True), If( Eval('install_range') != '0', ('addresses.zip', 'in', Eval('range_zip_codes')),() ), ], depends=['range_zip_codes','addresses.zip'], )
This is where I came to. If I put ‘limiting’ code into the property
filter = [....] I have two problems. Firstly, for unknown reason the Eval() function doesn’t work.
But the main problem that putting
addresses.zip in that field never worked as well.
What can I do? I don’t want to use domain instead of filter, as the domain property limits installers list only with ZIP codes that are mentioned the