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>
This commit is contained in:
@@ -58,17 +58,17 @@
|
||||
<group>
|
||||
<field name="income_imputed"/>
|
||||
<field name="imputed_amount"
|
||||
attrs="{'invisible': [('income_imputed', '=', False)]}"/>
|
||||
invisible="not income_imputed"/>
|
||||
<field name="fl_minimum_wage_hourly"/>
|
||||
<field name="fl_minimum_wage_monthly" readonly="1"/>
|
||||
<field name="imputation_basis"
|
||||
attrs="{'invisible': [('income_imputed', '=', False)]}"/>
|
||||
invisible="not income_imputed"/>
|
||||
</group>
|
||||
<separator string="Lifestyle Analysis (Barner v. Barner)"/>
|
||||
<group>
|
||||
<field name="lifestyle_inconsistency_flag"/>
|
||||
<field name="lifestyle_notes"
|
||||
attrs="{'invisible': [('lifestyle_inconsistency_flag', '=', False)]}"/>
|
||||
invisible="not lifestyle_inconsistency_flag"/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Service & SSN">
|
||||
@@ -77,7 +77,7 @@
|
||||
<field name="service_address"/>
|
||||
<field name="service_method"/>
|
||||
<field name="process_server_id"
|
||||
attrs="{'invisible': [('service_method', '!=', 'personal')]}"/>
|
||||
invisible="service_method != 'personal'"/>
|
||||
</group>
|
||||
<group string="SSN (FL-12.930(a))">
|
||||
<field name="ssn_last4"/>
|
||||
@@ -86,7 +86,7 @@
|
||||
</group>
|
||||
</group>
|
||||
<div class="alert alert-warning" role="alert"
|
||||
attrs="{'invisible': [('service_method', '!=', 'publication')]}">
|
||||
invisible="service_method != 'publication'">
|
||||
<strong>⚠️ Service by Publication</strong> is the most complex
|
||||
service method and requires a diligent search affidavit.
|
||||
Attorney representation is strongly recommended.
|
||||
|
||||
Reference in New Issue
Block a user