/** @odoo-module **/

import { registry } from "@web/core/registry";
import { FloatField, floatField } from "@web/views/fields/float/float_field";

export class MarginPercentField extends FloatField {
    static template = "fusion_inventory.MarginPercentField";
}

export const marginPercentField = {
    ...floatField,
    component: MarginPercentField,
    displayName: "Margin %",
    supportedTypes: ["float"],
};

registry.category("fields").add("fi_margin_pct", marginPercentField);
