I have created a new partner type called x_creditor and I have created window action and the menu item without problem for showing it on accounting menu as customer and supplier ones. But I need some help with filters. When I click on customer or supplier the window shows only these kind of partners and I would like to get the same with my new x_creditor partner.
I thought watching customer and supplier window action could copy the filter but I couldn't. I was trying with this on context value:
{'search_default_x_creditor': 1,'default_customer': 0,'default_supplier': 0,'default_x_creditor': 1}
But shows me all the partners and no filter. What's wrong?
Thank you.
↧