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>
75 lines
3.5 KiB
XML
75 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
|
|
<record id="view_fl_child_form" model="ir.ui.view">
|
|
<field name="name">fl.child.form</field>
|
|
<field name="model">fl.child</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Child">
|
|
<div class="alert alert-warning" role="alert"
|
|
invisible="not approaching_emancipation">
|
|
<strong>⚠️ APPROACHING EMANCIPATION:</strong>
|
|
<field name="name" readonly="1"/> turns 18 in
|
|
<field name="days_until_emancipation" readonly="1"/> days
|
|
(<field name="emancipation_date" readonly="1"/>).
|
|
File Motion to Modify 60 days before emancipation.
|
|
</div>
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="case_id"/>
|
|
<field name="name"/>
|
|
<field name="date_of_birth"/>
|
|
<field name="age" readonly="1"/>
|
|
<field name="gender"/>
|
|
<field name="school"/>
|
|
<field name="medical_provider"/>
|
|
</group>
|
|
<group string="Emancipation">
|
|
<field name="emancipation_date" readonly="1"/>
|
|
<field name="days_until_emancipation" readonly="1"/>
|
|
<field name="approaching_emancipation" readonly="1"/>
|
|
<field name="emancipated" readonly="1"/>
|
|
<field name="emancipation_alert_sent"/>
|
|
</group>
|
|
</group>
|
|
<group string="Early Emancipation Factors">
|
|
<field name="married"/>
|
|
<field name="active_military"/>
|
|
<field name="declared_emancipated"/>
|
|
<field name="emancipation_notes"/>
|
|
</group>
|
|
<group string="Support Amounts">
|
|
<field name="support_amount"/>
|
|
<field name="health_insurance_premium"/>
|
|
<field name="childcare_cost"/>
|
|
<field name="extraordinary_expenses"/>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_fl_child_tree" model="ir.ui.view">
|
|
<field name="name">fl.child.tree</field>
|
|
<field name="model">fl.child</field>
|
|
<field name="arch" type="xml">
|
|
<list string="Children"
|
|
decoration-warning="approaching_emancipation == True"
|
|
decoration-muted="emancipated == True">
|
|
<field name="name"/>
|
|
<field name="date_of_birth"/>
|
|
<field name="age"/>
|
|
<field name="emancipation_date"/>
|
|
<field name="days_until_emancipation"/>
|
|
<field name="approaching_emancipation"/>
|
|
<field name="emancipated"/>
|
|
<field name="support_amount"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|