Address book shows no entries after button press

Asked by John Bradshaw

Setup:
Version 6.0.2 server & webclient.
en_GB localisation.
We have 15 customer and just added 1 supplier.

Expected result:
All partners (customers/suppliers) are shown when both customer and supplier buttons are selected.

Actual result:
No partners are shown when both customer and supplier buttons are selected.

Steps to reproduce:
1. Open Sales/Address book/customers. All entries are displayed with neither "customer" nor "supplier" buttons highlighted.
2. Clicking on "customers" button shows only 15 customers as expected.
3. If then click on "suppliers" button, cutomer button remains highlighted/selected but no entries are shown.
4. If deselect customers button then the 1 supplier is seen.

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Vinay Rana (OpenERP)
Solved:
Last query:
Last reply:
Revision history for this message
Naresh(OpenERP) (nch-openerp) said :
#1

Hello,

selecting both the filters button means that you want to search for those partners that are both your customer & supplier... the domain passed will be "[('customer', '=', 1), ('supplier', '=', 1)]" so in your case you want have any records returned.

Revision history for this message
Best Vinay Rana (OpenERP) (vra-openerp) said :
#2

Hello John,

As naresh already mentioned above that it passes 'and' operation between two boolean fields so It will show only those partner which are supplier and customer both.

Hope this will help you.

Thanks.

Revision history for this message
John Bradshaw (john-johnbradshaw) said :
#3

Thanks Vinay Rana (openerp), that solved my question.