Files
famlaw/activeblue_familylaw/views/fl_caselaw_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

106 lines
5.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_fl_caselaw_tree" model="ir.ui.view">
<field name="name">fl.caselaw.tree</field>
<field name="model">fl.caselaw</field>
<field name="arch" type="xml">
<tree string="Case Law Library">
<field name="short_name"/>
<field name="year"/>
<field name="court"/>
<field name="favorable_to"/>
<field name="issue_tag_ids" widget="many2many_tags"/>
<field name="superseded_by_2023_reform"/>
</tree>
</field>
</record>
<record id="view_fl_caselaw_form" model="ir.ui.view">
<field name="name">fl.caselaw.form</field>
<field name="model">fl.caselaw</field>
<field name="arch" type="xml">
<form string="Case Law">
<sheet>
<div class="alert alert-warning" role="alert"
invisible="not superseded_by_2023_reform">
<strong>⚠️ NOTE:</strong> This case involves permanent alimony
which was <strong>eliminated by HB 1409 (effective July 1, 2023)</strong>.
Pre-2023 permanent alimony holdings may not apply to new cases.
</div>
<group>
<group>
<field name="short_name"/>
<field name="citation"/>
<field name="court"/>
<field name="year"/>
<field name="favorable_to"/>
</group>
<group>
<field name="statute_ref_ids" widget="many2many_tags"/>
<field name="issue_tag_ids" widget="many2many_tags"/>
<field name="full_text_url" widget="url"/>
<field name="google_scholar_url" widget="url"/>
<field name="superseded_by_2023_reform"/>
<field name="active"/>
</group>
</group>
<group string="Holding">
<field name="holding" nolabel="1"/>
</group>
<group string="Facts Summary">
<field name="facts_summary" nolabel="1"/>
</group>
<group string="Why It Matters for Pro Se Litigants">
<field name="relevance" nolabel="1"/>
</group>
<group string="Plain English (EN)">
<field name="plain_english" nolabel="1"/>
</group>
<group string="Plain English (ES)">
<field name="plain_english_es" nolabel="1"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_fl_caselaw_search" model="ir.ui.view">
<field name="name">fl.caselaw.search</field>
<field name="model">fl.caselaw</field>
<field name="arch" type="xml">
<search string="Search Case Law">
<field name="short_name"/>
<field name="citation"/>
<field name="holding"/>
<field name="issue_tag_ids"/>
<separator/>
<filter string="3rd DCA (Miami-Dade)" name="3rd_dca"
domain="[('court', '=', '3rd_dca')]"/>
<filter string="FL Supreme Court" name="supreme"
domain="[('court', '=', 'fl_supreme')]"/>
<filter string="Petitioner-Favorable" name="petitioner"
domain="[('favorable_to', '=', 'petitioner')]"/>
<filter string="Not Superseded" name="current"
domain="[('superseded_by_2023_reform', '=', False)]"/>
<group expand="0" string="Group By">
<filter string="Court" name="group_court"
context="{'group_by': 'court'}"/>
<filter string="Issue" name="group_issue"
context="{'group_by': 'issue_tag_ids'}"/>
</group>
</search>
</field>
</record>
<record id="action_fl_caselaw_list" model="ir.actions.act_window">
<field name="name">Case Law Library</field>
<field name="res_model">fl.caselaw</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="view_fl_caselaw_search"/>
</record>
</data>
</odoo>