Created
January 8, 2020 03:37
-
-
Save sehrishnaz/ae646accad41076afb35f8aff3192330 to your computer and use it in GitHub Desktop.
Form View in Odoo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Read more in detail: Form View in Odoo