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

@@ -45,13 +45,13 @@
</group>
<separator string="Income Sources"/>
<field name="income_source_ids">
<tree editable="bottom">
<list editable="bottom">
<field name="source_type"/>
<field name="description"/>
<field name="monthly_amount"/>
<field name="verified"/>
<field name="verification_document"/>
</tree>
</list>
</field>
</page>
<page string="Income Imputation (FL 61.30(2)(b))">
@@ -109,7 +109,7 @@
<field name="name">fl.party.tree</field>
<field name="model">fl.party</field>
<field name="arch" type="xml">
<tree string="Parties">
<list string="Parties">
<field name="case_id"/>
<field name="partner_id"/>
<field name="role"/>
@@ -118,7 +118,7 @@
<field name="net_monthly_income"/>
<field name="income_imputed"/>
<field name="lifestyle_inconsistency_flag" string="Lifestyle ⚠"/>
</tree>
</list>
</field>
</record>