Implements full Phase 1 of the activeblue_familylaw Odoo 18 module: - 17 Python models (fl.case, fl.party, fl.child, fl.support.calculation, fl.fee.waiver, fl.income.withholding, fl.deadline, fl.hearing, fl.deposition, fl.discovery, fl.document, fl.caselaw, fl.analysis, fl.ai.engine, fl.argument, fl.statute, fl.issue.tag) + hr.expense extension - 3 wizard stubs (intake, analysis, generate-packet) - Security: 4 groups (admin/paralegal/portal-petitioner/portal-respondent) + record rules scoping portal users to their own cases - Seed data: issue tags, FL statutes, FL DCF support schedule, ir.sequence - 13 backend view XML files with FL 61.30 worksheet, fee waiver eligibility banner, DV safety resources, emancipation alerts - Static CSS/JS stubs for Phase 6 portal Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
88 lines
4.5 KiB
XML
88 lines
4.5 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"
|
|
attrs="{'invisible': [('state', '!=', 'draft')]}"/>
|
|
<button name="action_approve" string="Approved"
|
|
type="object"
|
|
attrs="{'invisible': [('state', '!=', 'submitted')]}"
|
|
groups="activeblue_familylaw.group_admin"/>
|
|
<button name="action_deny" string="Denied"
|
|
type="object"
|
|
attrs="{'invisible': [('state', '!=', 'submitted')]}"
|
|
groups="activeblue_familylaw.group_admin"/>
|
|
<field name="state" widget="statusbar"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="alert alert-success" role="alert"
|
|
attrs="{'invisible': [('eligible', '=', False)]}">
|
|
<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"
|
|
attrs="{'invisible': [('eligible', '=', True)]}">
|
|
<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 & 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"
|
|
attrs="{'invisible': [('state', 'in', ['draft', 'submitted'])]}">
|
|
<field name="approval_date"
|
|
attrs="{'invisible': [('state', '!=', 'approved')]}"/>
|
|
<field name="denial_reason"
|
|
attrs="{'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>
|