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:
@@ -120,7 +120,7 @@
|
||||
<field name="name">fl.support.calculation.tree</field>
|
||||
<field name="model">fl.support.calculation</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Support Calculations">
|
||||
<list string="Support Calculations">
|
||||
<field name="case_id"/>
|
||||
<field name="calculation_date"/>
|
||||
<field name="calculation_type"/>
|
||||
@@ -129,7 +129,7 @@
|
||||
<field name="total_support_obligation"/>
|
||||
<field name="net_payment_amount"/>
|
||||
<field name="payment_direction"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -140,14 +140,14 @@
|
||||
<field name="name">fl.support.schedule.entry.tree</field>
|
||||
<field name="model">fl.support.schedule.entry</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="FL Support Schedule">
|
||||
<list string="FL Support Schedule">
|
||||
<field name="income_min"/>
|
||||
<field name="income_max"/>
|
||||
<field name="children_count"/>
|
||||
<field name="obligation_amount"/>
|
||||
<field name="effective_date"/>
|
||||
<field name="active"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user