Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 913
Nikolay Fominyh Avatar asked Nov 02 '25 08:11

Nikolay Fominyh


1 Answers

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>
like image 164
Kenly Avatar answered Nov 05 '25 06:11

Kenly