KbiR
KbiR

Reputation: 4174

Default Customer filter doesn't show customers - Multi company in odoo 10

I have enabled multicompany in odoo 10. and created a mother company and two child companies. And then created customers one for child_company_A and one for child_company_B. When i click on menu Customers, display empty list with filter customers. if i remove filter it displays all customer.

What is the reason for filter not working?

How can i resolve it?

And what is use of parent_id in customer form view?

Upvotes: 2

Views: 446

Answers (1)

Charif DZ
Charif DZ

Reputation: 14721

Cosutmer filter is like this:

<filter string="Customers" name="customer" domain="[('customer','=',1), ('parent_id', '=', False)]"/>

so if you select the filter records with parent_id are not shown.

if you have a costumer that is a company and you create an employee that work there no need to show them the parent company is enough.

Upvotes: 3

Related Questions