3

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

Bhavesh Odedra
  • 10,990
  • 12
  • 33
  • 58
Nikolay Fominyh
  • 8,946
  • 8
  • 66
  • 102

1 Answers1

2

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>
Kenly
  • 24,317
  • 7
  • 44
  • 60