Odoo Help


OpenERP 6.1 how to isolate supplier from sale groups on partner search view?

Chee Jon
on 6/20/13, 5:50 AM 2,297 views

On OpenERP 6.1, Sales -> Address Book -> Customer, Salesman should see customer only, how to isolate suppliers information from sale group, and search customer without touching supplier, "clear" button will not show suppliers as well. How to archieve this? Thanks for share!


Brett Lehrer

--Brett Lehrer--

| 5 5 8
Milwaukee, United States
--Brett Lehrer--
Director of IT and open source enthusiast.
Brett Lehrer
On 6/20/13, 12:12 PM

Create a domain on the action that opens that customer list view, that will supercede your search filter domains. You can quickly see this by going into debug mode, clicking on Sales -> Address Book -> Customers, then going to the debug dropdown and selecting "Edit Action". For the domain field, enter [('customer','=',1)] and save it. Now no matter what filters you choose, only customers show up.

To make that change last, you'd need to write some custom code to put that domain into the action XML. Something as simple as this would do it (because you're referring to the already existing action and only writing one change - the domain - and not re-writing the same info that's already there):

<record id="base.action_partner_form" model="ir.actions.act_window">
    <field name="domain">[('customer','=',1)]</field>

This makes your filter buttons pointless though, so you might want to get rid of those if you really want to go down this route.

I have tested with Sales -> Customer, it works good. This also works with Purchase which I set the domain [('supplier','=',1)]. Thanks for sharing, very appreciated!

Chee Jon
on 6/24/13, 5:50 AM

Brett, where can i find the action XML to edit which is linked to this customer?

Stanley Lai
on 12/27/13, 3:41 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/20/13, 5:50 AM
Seen: 2297 times
Last updated: 3/16/15, 8:10 AM