Files
famlaw/activeblue_familylaw/views/fl_child_views.xml
tocmo0nlord 983964c6d2 Migrate views to Odoo 17/18 syntax; fix pre-existing XML blockers
- Convert all 124 attrs="{...}" across 13 view files to direct Odoo 17/18
  attributes (invisible/readonly/required with Python expressions); prefix-domain
  OR/AND/NOT and operators handled (e.g. "(is_overdue or days_until_due > 7) and completed")
- Fix pre-existing XML errors that blocked module load on any version:
  - Replace invalid   HTML entity with   in 4 files (reports + portal)
  - Merge duplicate style= attributes (3 spots in website_intake_templates)
  - Replace 3 illegal <t t-if> embedded in class="" attributes with t-attf-class
- All 44 module XML files now parse clean

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 14:15:25 +00:00

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">
<tree 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"/>
</tree>
</field>
</record>
</data>
</odoo>