This commit is contained in:
gsinghpal
2026-03-13 12:38:28 -04:00
parent db4b9aa278
commit fc3c966484
2975 changed files with 1614 additions and 498 deletions

View File

@@ -0,0 +1,21 @@
// 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);

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="fusion_accounting.moveReversed">
<i t-if="props.record.data[props.name].records.length" class="fa fa-exclamation-circle" title="This move has been reversed"/>
</t>
</templates>