changes
This commit is contained in:
17
fusion_inventory/static/src/js/margin_widget.js
Normal file
17
fusion_inventory/static/src/js/margin_widget.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/** @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);
|
||||
Reference in New Issue
Block a user