Skip to Content
Menu
This question has been flagged
1 Reply
1314 Views

Good evening,

I appreciate your help. I am creating contacts and addresses for a client, but when creating an invoice, I see that it shows me the repeated client for each contact, shipping address, billing. How can I show the general client, a single client and not seem like a duplicate list.

Thank you.

Avatar
Discard
Best Answer

Hi,

If you need to achive this only for the field in the invoice form, you can apply a domain for the partner_id field.

('parent_id', '!=', False)

So Once you give this domain, child contacts will not be listed.

Thanks

Avatar
Discard
Author

it is actually for all methods of customer search. How should I do? inherit each model and replace the search method? with that domain ?? Thank you.

If you need to apply this every where, override the name_search method and apply domain there