Core DevPre-alpha
Widgets and views
Index for workspace view XML (parsed by core/engine/parser/view_xml.go, serialized by core/engine/swcmeta/, rendered by SWC).
Detailed references
| Topic | Page |
|---|---|
| View types (list, form, kanban, pivot, graph, calendar, gantt, map, cohort) | View types |
attributes (readonly, required, options, O2M subview) | Field attributes |
| Widget keys and options | SWC widget catalog |
| Full XML authoring guide | Views & menus |
| End-to-end module recipe | Build a module with SWC |
View types (summary)
| Type | Status | SWC class |
|---|---|---|
list / tree | Full | ListView |
form | Full | FormView |
kanban | Full | KanbanView |
pivot | Full | PivotView |
graph | v1 | GraphView |
calendar | v1 | CalendarView |
gantt | v1 | GanttView |
map | v1 | MapView |
cohort | v1 | CohortView |
Pivot fields (quick reference)
<view id="view_sale_order_pivot" model="sale.order" type="pivot">
<field name="partner_id" type="row"/>
<field name="date_order" type="col"/>
<field name="amount_total" type="measure"/>
</view>Common view attributes
| Attribute | View types | Purpose |
|---|---|---|
groups | all fields | Hide field unless user has ACL group |
open="false" | list | Disable row click → form |
default_group_by | kanban | Initial group column |
records_draggable | kanban | Enable drag between columns |
report_download | list, form, kanban | CSV/PDF export |
bulk_upload | list, form, kanban | Bulk CSV import |
View inheritance
Extend existing views with xpath — see View inheritance. Add stored fields with Model inheritance (inherit= struct tag) before xpath.