Files
famlaw/activeblue_familylaw/views/fl_fee_waiver_views.xml
tocmo0nlord 983964c6d2 Migrate views to Odoo 17/18 syntax; fix pre-existing XML blockers
- Convert all 124 attrs="{...}" across 13 view files to direct Odoo 17/18
  attributes (invisible/readonly/required with Python expressions); prefix-domain
  OR/AND/NOT and operators handled (e.g. "(is_overdue or days_until_due > 7) and completed")
- Fix pre-existing XML errors that blocked module load on any version:
  - Replace invalid   HTML entity with   in 4 files (reports + portal)
  - Merge duplicate style= attributes (3 spots in website_intake_templates)
  - Replace 3 illegal <t t-if> embedded in class="" attributes with t-attf-class
- All 44 module XML files now parse clean

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 14:15:25 +00:00

88 lines
4.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_fl_fee_waiver_form" model="ir.ui.view">
<field name="name">fl.fee.waiver.form</field>
<field name="model">fl.fee.waiver</field>
<field name="arch" type="xml">
<form string="Fee Waiver Application (FL 57.082)">
<header>
<button name="action_submit" string="Submit to Clerk"
type="object" class="oe_highlight"
invisible="state != 'draft'"/>
<button name="action_approve" string="Approved"
type="object"
invisible="state != 'submitted'"
groups="activeblue_familylaw.group_admin"/>
<button name="action_deny" string="Denied"
type="object"
invisible="state != 'submitted'"
groups="activeblue_familylaw.group_admin"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<div class="alert alert-success" role="alert"
invisible="not eligible">
<strong>✅ ELIGIBLE</strong><field name="eligibility_note" readonly="1" nolabel="1"/>
<br/>This applicant may also qualify for a
<strong>free county mediator</strong> under FL 44.108.
</div>
<div class="alert alert-warning" role="alert"
invisible="eligible">
<field name="eligibility_note" readonly="1" nolabel="1"/>
</div>
<group>
<group>
<field name="case_id"/>
<field name="party_id"/>
<field name="application_date"/>
</group>
<group string="Household &amp; Income">
<field name="household_size"/>
<field name="monthly_gross_income"/>
<field name="annual_gross_income" readonly="1"/>
</group>
</group>
<group string="FPL Threshold (FL 57.082)">
<field name="fpl_annual" readonly="1" string="100% FPL"/>
<field name="fpl_200pct_threshold" readonly="1" string="200% FPL (Threshold)"/>
<field name="eligible" readonly="1"/>
<field name="mediator_fee_waiver_eligible" readonly="1"/>
</group>
<group string="Outcome"
invisible="state in ['draft', 'submitted']">
<field name="approval_date"
invisible="state != 'approved'"/>
<field name="denial_reason"
invisible="state != 'denied'"/>
</group>
<field name="notes"/>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="message_ids"/>
</div>
</form>
</field>
</record>
<record id="view_fl_fee_waiver_tree" model="ir.ui.view">
<field name="name">fl.fee.waiver.tree</field>
<field name="model">fl.fee.waiver</field>
<field name="arch" type="xml">
<tree string="Fee Waivers">
<field name="case_id"/>
<field name="party_id"/>
<field name="household_size"/>
<field name="monthly_gross_income"/>
<field name="fpl_200pct_threshold"/>
<field name="eligible"/>
<field name="state"/>
</tree>
</field>
</record>
</data>
</odoo>