fix(fusion_helpdesk_central): findings + summary actually span full width

Previous fix (col=1 on the group) didn't work — Odoo still rendered
the group's string as a left-column label inside the form sheet's
flow, so the textarea got pushed into a narrow right column. The
summary field looked entirely missing because its content split
between the button row (on the right) and the textarea (collapsed
nowhere visible).

Right idiom (lifted from Odoo's own mail.compose.message wizard):
WIDE textareas live directly at the form level, not inside <group>.
Section titles use <separator string="…"> which renders as a
horizontal divider with the label above. The textarea then takes
the full sheet width naturally.

Same pattern applied to bulk mode for consistency.

Also moved Personal Note into the top compact group with Owner /
Owner Email since it's a one-line input that belongs with the
header info, not pretending to be a wide section.

Bumps fusion_helpdesk_central to 19.0.2.3.2.
This commit is contained in:
gsinghpal
2026-05-27 14:17:23 -04:00
parent bb873e8a7a
commit 1f818096db
2 changed files with 52 additions and 50 deletions

View File

@@ -3,7 +3,7 @@
# License OPL-1
{
'name': 'Fusion Helpdesk Central — Client API Keys',
'version': '19.0.2.3.1',
'version': '19.0.2.3.2',
'category': 'Productivity',
'summary': 'Admin UI on the central Odoo for issuing per-client API '
'keys used by fusion_helpdesk client deployments.',

View File

@@ -18,11 +18,16 @@
<field name="mode" invisible="1"/>
<field name="ticket_id" invisible="1"/>
<!--
Compact "who + note" header in a normal 2-col group.
Owner is read-only display, Personal Note is short.
-->
<group>
<group>
<field name="owner_name_display" string="Owner"/>
<field name="owner_email_display" string="Owner Email" widget="email"/>
</group>
<field name="owner_name_display" string="Owner" readonly="1"/>
<field name="owner_email_display" string="Owner Email"
widget="email" readonly="1"/>
<field name="personal_note"
placeholder="One-line note that appears above the summary in the email…"/>
</group>
<div class="alert alert-warning" role="alert"
@@ -34,63 +39,60 @@
</div>
<!--
Single mode. The user fills findings first, clicks
Generate Summary, reviews the AI output, edits if needed,
then Sends. We deliberately don't auto-fire OpenAI on
open — the AI needs the engineer's analysis to be useful.
Wide textareas live DIRECTLY at the form level (not inside
a <group>) so they take the full sheet width — the same
pattern Odoo's mail.compose.message wizard uses for the
`body` HTML editor. Section titles use <separator>, which
renders as a horizontal divider with a label above the
next field. This is the only Odoo 19 idiom that reliably
gives a full-width textarea inside a wizard dialog.
-->
<group invisible="mode != 'single'">
<field name="personal_note"
placeholder="One-line note that appears above the summary in the email…"/>
</group>
<!--
`col="1"` on these single-column groups makes the
enclosed field span the full group width. The default
`col="2"` reserves a label column even with nolabel=1,
which is what was squeezing the textareas into half
width before. Findings + summary are wide-form inputs
that deserve all the real estate the dialog has.
-->
<group invisible="mode != 'single'" string="1. Your Findings" col="1">
<field name="findings" nolabel="1"
widget="text"
placeholder="What did your investigation surface? Scope, limitations, recommended approach, effort, risks — anything the owner needs to know that the original reporter wouldn't have."/>
</group>
<group invisible="mode != 'single'" string="2. Summary to Send" col="1">
<div class="d-flex align-items-center">
<button name="action_generate_summary" type="object"
string="Generate Summary from Findings"
icon="fa-magic"
class="btn-secondary"/>
<span class="text-muted ms-2">
← click after writing your findings, then review &amp; edit below
</span>
</div>
<field name="ai_summary" nolabel="1"
widget="text"
placeholder="Click Generate Summary above, or write the brief yourself. The owner reads this first."/>
</group>
<separator string="1. Your Findings"
invisible="mode != 'single'"/>
<field name="findings"
invisible="mode != 'single'"
nolabel="1"
widget="text"
placeholder="What did your investigation surface? Scope, limitations, recommended approach, effort, risks — anything the owner needs to know that the original reporter wouldn't have."/>
<separator string="2. Summary to Send"
invisible="mode != 'single'"/>
<div class="d-flex align-items-center mb-2"
invisible="mode != 'single'">
<button name="action_generate_summary" type="object"
string="Generate Summary from Findings"
icon="fa-magic"
class="btn-secondary"/>
<span class="text-muted ms-2">
← click after writing your findings, then review &amp; edit below
</span>
</div>
<field name="ai_summary"
invisible="mode != 'single'"
nolabel="1"
widget="text"
placeholder="Click Generate Summary above, or write the brief yourself. The owner reads this first."/>
<!--
Bulk mode: same two-step flow per ticket. Findings +
Summary editable inline; a single Generate All button
fans out OpenAI in parallel using each line's findings.
Bulk mode: same two-step flow, per-line. The list view
is wide by default because list views fill the form
sheet — no special layout work needed.
-->
<group invisible="mode != 'bulk'">
<field name="personal_note"
placeholder="One-line note that appears once at the top of the combined email…"/>
</group>
<div class="o_row" colspan="2"
<separator string="Per-Ticket Findings &amp; Summaries"
invisible="mode != 'bulk'"/>
<div class="d-flex align-items-center mb-2"
invisible="mode != 'bulk'">
<button name="action_generate_all_summaries" type="object"
string="Generate All Summaries"
icon="fa-magic"
class="btn-secondary"/>
<span class="o_form_label text-muted ms-2">
<span class="text-muted ms-2">
← fill in findings per row first, then click to regenerate all summaries in parallel
</span>
</div>
<field name="line_ids" invisible="mode != 'bulk'" nolabel="1">
<field name="line_ids"
invisible="mode != 'bulk'"
nolabel="1">
<list editable="bottom" create="0" delete="0">
<field name="ticket_id" readonly="1"/>
<field name="ticket_name" readonly="1"/>