This commit is contained in:
gsinghpal
2026-03-14 12:04:20 -04:00
parent fc3c966484
commit e9cf75ee48
75 changed files with 6991 additions and 873 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View 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);

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<templates xml:space="preserve">
<t t-name="fusion_inventory.MarginPercentField" t-inherit="web.FloatField" t-inherit-mode="extension">
<xpath expr="//span[hasclass('o_field_float')]" position="after">
<span class="ms-1 text-muted fw-normal">%</span>
</xpath>
</t>
</templates>