Hello all,
In a window action, there is the field view_ids. This field is a one2many field.
When I add this in the xml record, it doesn't work.
Should it work?
<record id="action_invoice_tree1_cf" model="ir.actions.act_window">
<field name="name">Sales invoices - CF action</field>
<field name="res_model">account.invoice</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,calendar,graph</field>
<field eval="False" name="view_id"/>
<field name="domain">[('type','=','out_invoice')]</field>
<field name="context">{'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale'}</field>
<field name="search_view_id" ref="account.view_account_invoice_filter" />
<field name="limit" type="int">500</field>
<field name="view_ids" eval="[(4, 0, [ref('account.invoice_form')])]" />
</record>
ABsolutely none example in all odoo 8 files for this.