I want to create new button in customer view, redirect no messages view. I want set filter on the list which is show messages send to customer or customer is author. How can i create button with this OR filtering? This is my code, but it`s set AND relation .
<button type="action" string="Messages" attrs="{'invisible': [('customer', '=', False)]}" name="%(mail.message)d" context="{'search_default_partner_ids': name, 'search_default_author_id': active_id,}"/>