// Fusion Accounting - Move Reversed Widget
// Copyright (C) 2026 Nexa Systems Inc.

import { registry } from "@web/core/registry";
import { Component } from "@odoo/owl";
import { standardFieldProps } from "@web/views/fields/standard_field_props";

/**
 * MoveReversed - Field widget indicating whether a journal entry
 * has been reversed, with visual status display.
 */
export class MoveReversed extends Component {
    static template = "fusion_accounting.moveReversed";
    static props = {...standardFieldProps};
}

export const moveReversed = {
    component: MoveReversed,
};

registry.category("fields").add("deprec_lines_reversed", moveReversed);
