Hi,
Could any one help me to figure out what is the problem why the filter isn't set by default:
<record id="view_voucher_inherit_filter" model="ir.ui.view">
<field name="name">checks.search</field>
<field name="model">account.voucher</field>
<field name="inherit_id" ref="account_voucher.view_voucher_filter"/>
<field name="arch" type="xml">
<filter string="Draft" position="before">
<filter name="cheque" domain="[('journal_id.code', '=', 'TCHK')]" />
</filter>
</field>
</record>
<record id="account_voucher.action_voucher_list" model="ir.actions.act_window">
<field name="name">Journal Vouchers</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">account.voucher</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,graph</field>
<field name="context">{'search_default_cheque:1}</field>
<field name="search_view_id" ref="view_voucher_inherit_filter"/>
</record>