OWL
forms
Handle Field
Odoo 19 OWL component — Handle Field (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
HandleField- Category
—- Module
web- Slug
handle-field- Nav group
forms