Files
Odoo-Modules/fusion_portal/views/sale_order_views.xml
gsinghpal 747c814249 refactor(fusion_portal): rename from fusion_authorizer_portal + modern photo cards on accessibility selector
Rename module fusion_authorizer_portal -> fusion_portal everywhere:
manifest/assets, controllers, models, views, JS (odoo.define + asset URLs),
migration MODULE constants; plus cross-module refs in fusion_schedule,
fusion_repairs, fusion_quotations (depends + inherit_id) and the pdf_filler
import in fusion_claims. Add rename_module.sql for the one-time in-place DB
rename (ir_module_module, ir_model_data, ir_ui_view.key,
ir_module_module_dependency) required on installed envs before -u fusion_portal.
Document the rename gotcha as rule 16 in CLAUDE.md.

Redesign the Accessibility Assessment selector: replace Font Awesome icon tiles
with photo-banner cards using 7 optimized images (1000x750 PNG -> 800x600 JPEG,
~8MB -> 488KB), per-type colour accent bar + centered pill button, hover
lift/zoom. Images ship as module static files so they deploy/sync with the module.

Drop the regenerable graphify-out cache from the module.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 22:38:14 -04:00

50 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Extend Sale Order Form to add Portal Documents Tab and Message Buttons -->
<record id="view_sale_order_form_portal_docs" model="ir.ui.view">
<field name="name">sale.order.form.portal.docs</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="priority">99</field>
<field name="arch" type="xml">
<!-- Message Authorizer button moved to chatter topbar (icon-only) -->
<!-- See static/src/js/chatter_message_authorizer.js -->
<xpath expr="//page[@name='other_information']" position="after">
<page string="Portal" name="portal_info">
<group>
<group string="Portal Activity">
<field name="portal_document_count" string="Documents Uploaded"/>
<field name="portal_comment_count" string="Comments"/>
</group>
<group string="Source">
<field name="assessment_id" readonly="1"/>
</group>
</group>
<group>
<button name="action_view_portal_documents"
type="object"
string="View Portal Documents"
class="btn-secondary"
icon="fa-file-pdf-o"
invisible="portal_document_count == 0"/>
<button name="action_view_portal_comments"
type="object"
string="View Portal Comments"
class="btn-secondary"
icon="fa-comments"
invisible="portal_comment_count == 0"/>
</group>
</page>
</xpath>
<!-- Filter authorizer dropdown to only show actual authorizers -->
<xpath expr="//field[@name='x_fc_authorizer_id']" position="attributes">
<attribute name="domain">[('is_company', '=', False), ('is_authorizer', '=', True)]</attribute>
</xpath>
</field>
</record>
</odoo>