odoo18/addons/hr_expense/static/src/components/nb_attachment.js

18 lines
520 B
JavaScript

/** @odoo-module **/
import { registry } from "@web/core/registry";
import { Component } from "@odoo/owl";
import { standardFieldProps } from "@web/views/fields/standard_field_props";
class AttachmentNumber extends Component {
static template = "hr_expense.AttachmentNumber";
static props = {...standardFieldProps};
setup() {
super.setup();
this.nb_attachment = this.props.record.data.nb_attachment
}
}
registry.category("fields").add("nb_attachment", {component: AttachmentNumber});