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>
171 lines
9.3 KiB
XML
171 lines
9.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<odoo>
|
||
<data>
|
||
|
||
<!-- ══════<E29590><E29590>══════════════════════════════<E29590><E29590>════════════════
|
||
FL SUPPORT CALCULATION — FORM
|
||
══════════════════════════════════════════════<E29590><E29590><EFBFBD>═══════ -->
|
||
<record id="view_fl_support_calc_form" model="ir.ui.view">
|
||
<field name="name">fl.support.calculation.form</field>
|
||
<field name="model">fl.support.calculation</field>
|
||
<field name="arch" type="xml">
|
||
<form string="FL 61.30 Child Support Calculation">
|
||
<sheet>
|
||
<div class="oe_title">
|
||
<h1>FL 61.30 Child Support Guidelines Worksheet</h1>
|
||
</div>
|
||
<group>
|
||
<group>
|
||
<field name="case_id"/>
|
||
<field name="calculation_date"/>
|
||
<field name="calculation_type"/>
|
||
</group>
|
||
<group>
|
||
<field name="number_of_children" readonly="1"/>
|
||
<field name="notes"/>
|
||
</group>
|
||
</group>
|
||
|
||
<separator string="Step 1: Net Monthly Income (FL 61.30(3))"/>
|
||
<group>
|
||
<group string="Petitioner">
|
||
<field name="petitioner_net_income"/>
|
||
<field name="petitioner_income_pct" readonly="1" string="Income %"/>
|
||
</group>
|
||
<group string="Respondent">
|
||
<field name="respondent_net_income"/>
|
||
<field name="respondent_income_pct" readonly="1" string="Income %"/>
|
||
</group>
|
||
</group>
|
||
<group>
|
||
<field name="combined_net_income" readonly="1"/>
|
||
</group>
|
||
|
||
<separator string="Step 2: Basic Support Obligation (Schedule Lookup)"/>
|
||
<group>
|
||
<field name="basic_support_obligation" readonly="1"/>
|
||
<field name="support_schedule_id" readonly="1"/>
|
||
<field name="above_schedule" readonly="1"/>
|
||
</group>
|
||
|
||
<separator string="Step 3: Adjustments (FL 61.30(7),(8),(9))"/>
|
||
<group>
|
||
<group string="Health Insurance (FL 61.30(8))">
|
||
<field name="child_health_insurance_total"/>
|
||
<field name="health_insurance_by_petitioner"/>
|
||
<field name="health_insurance_by_respondent"/>
|
||
</group>
|
||
<group string="Childcare — Work Related (FL 61.30(7))">
|
||
<field name="childcare_total"/>
|
||
<field name="childcare_by_petitioner"/>
|
||
<field name="childcare_by_respondent"/>
|
||
</group>
|
||
</group>
|
||
<group>
|
||
<field name="extraordinary_expenses"/>
|
||
<field name="adjusted_support_obligation" readonly="1"/>
|
||
</group>
|
||
|
||
<separator string="Step 4: Timesharing Adjustment (FL 61.30(11)(b))"/>
|
||
<group>
|
||
<field name="substantial_timesharing" readonly="1"/>
|
||
<field name="petitioner_overnights" readonly="1"/>
|
||
<field name="respondent_overnights" readonly="1"/>
|
||
<field name="timesharing_adjustment" readonly="1"/>
|
||
</group>
|
||
|
||
<separator string="Step 5: Final Obligation"/>
|
||
<group>
|
||
<field name="total_support_obligation" readonly="1"/>
|
||
<field name="petitioner_obligation" readonly="1"/>
|
||
<field name="respondent_obligation" readonly="1"/>
|
||
<field name="net_payment_amount" readonly="1"/>
|
||
<field name="payment_direction" readonly="1"/>
|
||
</group>
|
||
|
||
<separator string="Deviation (FL 61.30(1)(a)) — Optional"/>
|
||
<group>
|
||
<field name="deviation_requested"/>
|
||
<field name="deviation_reason"
|
||
invisible="not deviation_requested"/>
|
||
<field name="deviation_amount"
|
||
invisible="not deviation_requested"/>
|
||
<field name="final_amount_with_deviation" readonly="1"
|
||
invisible="not deviation_requested"/>
|
||
</group>
|
||
|
||
<separator string="Summary"/>
|
||
<field name="calculation_summary" readonly="1" nolabel="1"/>
|
||
|
||
<div class="alert alert-info" role="alert">
|
||
<strong>⚖️ Disclaimer:</strong>
|
||
This calculation is generated by computer for informational purposes.
|
||
Verify all figures before filing with the court.
|
||
FL support schedule values should be verified against the current
|
||
Florida Department of Revenue guidelines.
|
||
</div>
|
||
</sheet>
|
||
<div class="oe_chatter">
|
||
<field name="message_follower_ids"/>
|
||
<field name="message_ids"/>
|
||
</div>
|
||
</form>
|
||
</field>
|
||
</record>
|
||
|
||
<!-- ════════════<E29590><E29590>═════════════════════════════════════════
|
||
FL SUPPORT CALCULATION — TREE
|
||
══════════════════════════════════════════════════════ -->
|
||
<record id="view_fl_support_calc_tree" model="ir.ui.view">
|
||
<field name="name">fl.support.calculation.tree</field>
|
||
<field name="model">fl.support.calculation</field>
|
||
<field name="arch" type="xml">
|
||
<list string="Support Calculations">
|
||
<field name="case_id"/>
|
||
<field name="calculation_date"/>
|
||
<field name="calculation_type"/>
|
||
<field name="combined_net_income"/>
|
||
<field name="basic_support_obligation"/>
|
||
<field name="total_support_obligation"/>
|
||
<field name="net_payment_amount"/>
|
||
<field name="payment_direction"/>
|
||
</list>
|
||
</field>
|
||
</record>
|
||
|
||
<!-- ══════════════════════<E29590><E29590><EFBFBD>═══════════════════════════════
|
||
FL SUPPORT SCHEDULE ENTRY — TREE (admin view)
|
||
═══════════════════════════════════<E29590><E29590><EFBFBD>══════════════════ -->
|
||
<record id="view_fl_support_schedule_tree" model="ir.ui.view">
|
||
<field name="name">fl.support.schedule.entry.tree</field>
|
||
<field name="model">fl.support.schedule.entry</field>
|
||
<field name="arch" type="xml">
|
||
<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"/>
|
||
</list>
|
||
</field>
|
||
</record>
|
||
|
||
<!-- ══════════════════<E29590><E29590><EFBFBD>══════════════════════════<E29590><E29590>════════
|
||
ACTIONS
|
||
══════════════════════════════════════════════════════ -->
|
||
<record id="action_fl_support_calc_list" model="ir.actions.act_window">
|
||
<field name="name">Support Calculations</field>
|
||
<field name="res_model">fl.support.calculation</field>
|
||
<field name="view_mode">tree,form</field>
|
||
</record>
|
||
|
||
<record id="action_fl_support_schedule_list" model="ir.actions.act_window">
|
||
<field name="name">FL DCF Support Schedule</field>
|
||
<field name="res_model">fl.support.schedule.entry</field>
|
||
<field name="view_mode">tree,form</field>
|
||
</record>
|
||
|
||
</data>
|
||
</odoo>
|