Tutorial: Creating Grid Views
Learn how to create grid views in Odoo
Grid View
Enterprise
Tutorial
⚠️ Note: Grid views require Odoo Enterprise Edition!
Overview
This tutorial module teaches you how to create grid views in Odoo. Grid views display data in a matrix format with rows and columns, perfect for timesheet-style data entry.
What You'll Learn
- How to create a model suitable for grid views
- Required fields: row (many2one), column (date), measure (float/integer)
- Grid view XML definition and attributes
- Editable cells and data adjustment
Contains
- New app "Grid View Tutorial" on homescreen
- New model "work.overtime" for tracking overtime hours
- Form, Tree, and Grid views
- Search view with filters
Key Code Example
<grid string="Overtime Grid" adjustment="object">
<field name="employee_id" type="row"/>
<field name="date" type="col"/>
<field name="hours" type="measure"/>
</grid>
Technical Information
Tutorial: Creating Grid Views
Learn how to create grid views in Odoo
Grid View
Enterprise
Tutorial
⚠️ Note: Grid views require Odoo Enterprise Edition!
Overview
This tutorial module teaches you how to create grid views in Odoo. Grid views display data in a matrix format with rows and columns, perfect for timesheet-style data entry.
What You'll Learn
- How to create a model suitable for grid views
- Required fields: row (many2one), column (date), measure (float/integer)
- Grid view XML definition and attributes
- Editable cells and data adjustment
Contains
- New app "Grid View Tutorial" on homescreen
- New model "work.overtime" for tracking overtime hours
- Form, Tree, and Grid views
- Search view with filters
Key Code Example
<grid string="Overtime Grid" adjustment="object">
<field name="employee_id" type="row"/>
<field name="date" type="col"/>
<field name="hours" type="measure"/>
</grid>
Technical Information
Version: 19.0.1.0.0
Dependencies: base, hr
License: OPL-1
Please log in to comment on this module