changes
This commit is contained in:
@@ -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);
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user