Hi, I want to display customers according to the selected branch. Some customers have empty branches, and some have branches. if it's empty it means it can be used in all branches
so what is displayed is the customer's name according to the selected branch but at the same time you can also search for customers with empty branches
I've tried this but it only displays the name of the customer based on the selected branch, and can't search customers name with an empty branch
domain= {'domain': {'partner_id': ['|',('branch_id', '=', self.branch_id.id)]}}
And if like this, i can search customer with empty branch, but the name that appears when the branch is selected becomes random again and what appears is not the name of the customer with the selected branch
domain= {'domain': {'partner_id': ['|',('branch_id', '=', self.branch_id.id),('branch_id', '=', False) ]}}
how can i display customer names based on the selected branch, while at the same time being able to search for customer names with empty branches?
is there any suggestion to solve this problem?
Thanks!