I was trying to create a pivot in Odoo v11 but when I install the app , It shows this error
ValueError: Wrong value for ir.actions.act_window.view_type: 'pivot'
my xml code is as follows:
<record id="action_view_pivot" model="ir.ui.view">
<field name="name">projection.onetomanydata.pivot</field>
<field name="model">projection.onetomanydata</field>
<field name="arch" type="xml">
<pivot string="View Achievements">
<field name="date" type="row"/>
<field name="inv" type="row"/>
<field name="target" type="measure"/>
<field name="sales_today" type="row"/>
<field name="inv" type="col"/>
<field name="date" type="col"/>
</pivot>
</field>
</record>