Skip to Content
fields forms

Handle

Odoo 19 fields — Handle (views)

Live preview Interactive
Source excerpt web/static/src/views/fields/handle/handle_field.js
import { registry } from "@web/core/registry";
import { _t } from "@web/core/l10n/translation";
import { standardFieldProps } from "../standard_field_props";

import { Component } from "@odoo/owl";

export class HandleField extends Component {
    static template = "web.HandleField";
    static props = {
        ...standardFieldProps,
    };
}

export const handleField = {
    component: HandleField,
    displayName: _t("Handle"),
    supportedTypes: ["integer"],
    isEmpty: () => false,
    listViewWidth: 20,
    extractProps(_, dynamicInfo) {
        return {
            readonly: dynamicInfo.readonly,
        };
    },
};

registry.category("fields").add("handle", handleField);
Registry / API
Registry name
handle
Category
fields
Module
web
Slug
handle
Nav group
forms