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>
This commit is contained in:
2026-05-30 03:28:55 +00:00
parent 983964c6d2
commit c1b5947b7c
19 changed files with 55 additions and 88 deletions

View File

@@ -131,14 +131,14 @@
</group>
<separator string="Party Details (Income, Employment, Service)"/>
<field name="party_ids">
<tree string="Parties" editable="bottom">
<list string="Parties" editable="bottom">
<field name="partner_id"/>
<field name="role"/>
<field name="employment_type"/>
<field name="gross_monthly_income"/>
<field name="net_monthly_income" readonly="1"/>
<field name="income_imputed"/>
</tree>
</list>
</field>
</page>
@@ -167,7 +167,7 @@
invisible="not parenting_class_required"/>
<separator string="Children on Case"/>
<field name="child_ids">
<tree string="Children" editable="bottom">
<list string="Children" editable="bottom">
<field name="name"/>
<field name="date_of_birth"/>
<field name="age" readonly="1"/>
@@ -175,7 +175,7 @@
<field name="approaching_emancipation" readonly="1"/>
<field name="emancipated" readonly="1"/>
<field name="support_amount"/>
</tree>
</list>
</field>
</page>
@@ -230,7 +230,7 @@
<field name="discovery_cutoff_date" readonly="1"/>
</group>
<field name="deadline_ids">
<tree string="Deadlines" decoration-danger="is_overdue == True"
<list string="Deadlines" decoration-danger="is_overdue == True"
decoration-warning="days_until_due &lt;= 7 and days_until_due &gt;= 0"
decoration-muted="completed == True">
<field name="name"/>
@@ -240,7 +240,7 @@
<field name="statute_reference"/>
<field name="completed"/>
<field name="is_overdue" readonly="1"/>
</tree>
</list>
</field>
</page>
@@ -248,13 +248,13 @@
<page string="Hearings" name="hearings">
<field name="next_hearing_date" readonly="1"/>
<field name="hearing_ids">
<tree string="Hearings" editable="bottom">
<list string="Hearings" editable="bottom">
<field name="name"/>
<field name="hearing_type"/>
<field name="hearing_date"/>
<field name="location"/>
<field name="state"/>
</tree>
</list>
</field>
</page>
@@ -282,7 +282,7 @@
invisible="not attorney_memo_id"/>
<separator string="All Analyses"/>
<field name="analysis_ids">
<tree string="Analyses">
<list string="Analyses">
<field name="analysis_date"/>
<field name="analysis_type"/>
<field name="model_used"/>
@@ -290,7 +290,7 @@
<field name="confidence_level"/>
<field name="case_complexity"/>
<field name="state"/>
</tree>
</list>
</field>
</page>
@@ -320,16 +320,16 @@
groups="activeblue_familylaw.group_admin,activeblue_familylaw.group_paralegal"/>
<separator string="Case Documents"/>
<field name="document_ids">
<tree string="Documents">
<list string="Documents">
<field name="name"/>
<field name="document_type"/>
<field name="state"/>
<field name="filed_date"/>
</tree>
</list>
</field>
<separator string="e-Filing Submissions"/>
<field name="efiling_submission_ids">
<tree string="e-Filing Submissions"
<list string="e-Filing Submissions"
decoration-success="status == 'accepted'"
decoration-danger="status in ('rejected','failed')"
decoration-info="status == 'submitted'">
@@ -339,7 +339,7 @@
<field name="pdfa_valid"/>
<field name="confirmation_number"/>
<field name="status"/>
</tree>
</list>
</field>
</page>
@@ -356,7 +356,7 @@
</group>
</group>
<field name="timesheet_ids">
<tree string="Timesheet Entries" editable="bottom"
<list string="Timesheet Entries" editable="bottom"
decoration-muted="is_billable == False">
<field name="date"/>
<field name="name"/>
@@ -367,7 +367,7 @@
<field name="hourly_rate" readonly="1"/>
<field name="billable_amount" readonly="1" sum="Amount"/>
<field name="currency_id" column_invisible="1"/>
</tree>
</list>
</field>
</page>
@@ -389,7 +389,7 @@
<field name="name">fl.case.tree</field>
<field name="model">fl.case</field>
<field name="arch" type="xml">
<tree string="Family Law Cases"
<list string="Family Law Cases"
decoration-danger="overdue_deadline_count &gt; 0"
decoration-warning="attorney_referral_flag == True">
<field name="name"/>
@@ -406,7 +406,7 @@
invisible="case_type != 'modification'"/>
<field name="attorney_referral_flag" widget="boolean_toggle"/>
<field name="domestic_violence_flag" widget="boolean_toggle"/>
</tree>
</list>
</field>
</record>