Search code examples
odooodoo-8odoo-9odoo-view

Odoo. Creating empty view


What's the easiest way to create empty view in Odoo, which renders custom HTML?

There are no such type of views in advanced views


Solution

  • To do it with your specifications, add HTML code in sheet tag:

        <record model="ir.ui.view" id="session_form_view">
            <field name="name">session.form</field>
            <field name="model">openacademy.session</field>
            <field name="arch" type="xml">
                <form string="Session Form">
                    <sheet>
                        Your HTML code here
                    </sheet>
                </form>
            </field>
        </record>