Skip to content

Instantly share code, notes, and snippets.

@sehrishnaz
Created January 8, 2020 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sehrishnaz/ae646accad41076afb35f8aff3192330 to your computer and use it in GitHub Desktop.
Save sehrishnaz/ae646accad41076afb35f8aff3192330 to your computer and use it in GitHub Desktop.
Form View in Odoo
<record model="ir.ui.view" id="view_any_name_form">
<field name="name">any.name.form</field>
<field name="model">your.model</field>
<field name="groups_id"></field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="My Form">
<sheet>
<group>
<field name="field_1"/>
</group>
<group col="4" colspan="4">
<field name="field_2"/>
</group>
<group col="4" colspan="4">
<field name="field_3"/>
<field name="field_4"/>
</group>
</sheet>
<footer>
<button name="added" type="object" string="Add" class="oe_highlight"/>
or
<button special="cancel" string="Cancel"/>
</footer>
</form>
</field>
</record>
@sehrishnaz
Copy link
Author

Read more in detail: Form View in Odoo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment