Files
famlaw/activeblue_familylaw/views/fl_fee_waiver_views.xml
tocmo0nlord c1b5947b7c Make module installable on stock Odoo 18 (verified via test DB install)
Caught and fixed by running an actual install on a throwaway DB:

- Strip 29 # comment lines from ir.model.access.csv (Odoo CSV loader treats
  them as malformed rows → IndexError); 79 data rows preserved
- Remove obsolete ir.cron.numbercall field (removed in Odoo 17+) from 4 cron
  records in fl_deadline_rules.xml
- Rename <tree>→<list> across 26 sites; inside x2many inline views Odoo 18 no
  longer recognizes <tree>, which made it fall back to the outer model and
  reject inner fields ("Field 'partner_id' does not exist in model 'fl.case'")
- Add store=True to non-stored computed fields referenced by search filters,
  which Odoo 18 now rejects as unsearchable:
  - fl.case: overdue_deadline_count, next_deadline_label
  - fl.deposition: notice_valid

Module loads cleanly: 31 fl.* models registered, no errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 03:28:55 +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">
<list 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"/>
</list>
</field>
</record>
</data>
</odoo>