Hi all,
I am trying to show custom report visible only on cash statement.
Other views using 'account.bank.statement' should not allow access to this button.
I have defined both report and sidebar button action in xml. Here is button action definition:
Code:
<record id="test_cash_statement_report_value_id" model="ir.values">
<field name="name">test_account_cash_statement_report</field>
<field name="key2">client_print_multi</field>
<field eval="1" name="object"/>
<field name="value" val="'ir.actions.report.xml,'+str(test_cash_statement_report_id)"/>
<field name="key">action</field>
<field name="model">account.bank.statement</field>
</record>
So, does anyone know what should I do to make this button show only on cash statement form?
I was thinking about something like
Code:
<field name="attrs">"{'invisible':[('journal_id.type','!=','cash')]}"</field>
but couldn't find any reference...