Files
famlaw/activeblue_familylaw/views/fl_caselaw_views.xml
tocmo0nlord a8c72adbc7 Fix act_window view_mode 'tree' → 'list' (Odoo 18 client error)
Earlier <tree>→<list> pass missed the ir.actions.act_window.view_mode field.
Clicking the Family Law Cases menu raised "View types not defined tree found
in act_window action 549" in the Odoo 18 client.

Updated all 17 view_mode declarations across 12 view files (tree→list,
preserves kanban/calendar/form pieces).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 21:21:15 +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">
<list 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"/>
</list>
</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">list,form</field>
<field name="search_view_id" ref="view_fl_caselaw_search"/>
</record>
</data>
</odoo>