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>
106 lines
5.0 KiB
XML
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">tree,form</field>
|
|
<field name="search_view_id" ref="view_fl_caselaw_search"/>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|