feat(fusion_accounting_followup): ai_text_panel + followup_history_table components
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import { Component } from "@odoo/owl";
|
||||
|
||||
export class AiTextPanel extends Component {
|
||||
static template = "fusion_accounting_followup.AiTextPanel";
|
||||
static props = {
|
||||
text: { type: Object },
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-name="fusion_accounting_followup.AiTextPanel">
|
||||
<div class="fu-ai-text-panel mt-3">
|
||||
<h5>AI-Generated Follow-up Text</h5>
|
||||
<div class="ai-subject">
|
||||
Subject: <t t-esc="props.text.subject"/>
|
||||
</div>
|
||||
<div class="ai-body">
|
||||
<t t-esc="props.text.body"/>
|
||||
</div>
|
||||
<div class="key-points" t-if="props.text.key_points and props.text.key_points.length">
|
||||
<strong>Key points:</strong>
|
||||
<ul>
|
||||
<li t-foreach="props.text.key_points" t-as="point" t-key="point_index">
|
||||
<t t-esc="point"/>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="text-muted mt-2" style="font-size: 0.75rem;">
|
||||
Tone used: <t t-esc="props.text.tone_used or props.text.tone or 'gentle'"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
Reference in New Issue
Block a user