From 983964c6d226b1160645ed4cf7928773ea80ab84 Mon Sep 17 00:00:00 2001 From: tocmo0nlord Date: Fri, 29 May 2026 14:15:25 +0000 Subject: [PATCH] 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 embedded in class="" attributes with t-attf-class - All 44 module XML files now parse clean Co-Authored-By: Claude Sonnet 4.6 --- .../report/report_fee_waiver.xml | 6 +-- .../report/report_mandatory_disclosure.xml | 4 +- .../report/report_parenting_plan.xml | 32 ++++++------ .../views/fl_analysis_views.xml | 14 +++--- activeblue_familylaw/views/fl_case_views.xml | 50 +++++++++---------- .../views/fl_caselaw_views.xml | 2 +- activeblue_familylaw/views/fl_child_views.xml | 2 +- .../views/fl_conflict_check_views.xml | 14 +++--- .../views/fl_deadline_views.xml | 18 +++---- .../views/fl_deposition_views.xml | 38 +++++++------- .../views/fl_discovery_views.xml | 40 +++++++-------- .../views/fl_efiling_views.xml | 18 +++---- .../views/fl_fee_waiver_views.xml | 16 +++--- .../views/fl_hearing_views.xml | 20 ++++---- activeblue_familylaw/views/fl_party_views.xml | 10 ++-- .../views/fl_support_views.xml | 6 +-- .../views/portal_case_templates.xml | 14 +++--- .../views/website_intake_templates.xml | 8 +-- 18 files changed, 156 insertions(+), 156 deletions(-) diff --git a/activeblue_familylaw/report/report_fee_waiver.xml b/activeblue_familylaw/report/report_fee_waiver.xml index fe74696..c8e1987 100644 --- a/activeblue_familylaw/report/report_fee_waiver.xml +++ b/activeblue_familylaw/report/report_fee_waiver.xml @@ -104,7 +104,7 @@ Role in Case: - [ ] Petitioner    [ ] Respondent + [ ] Petitioner    [ ] Respondent @@ -155,8 +155,8 @@
Cash on hand / bank accounts: $________
- Real property (value): $________    Mortgage/lien: $________
- Vehicles (value): $________    Loan balance: $________
+ Real property (value): $________    Mortgage/lien: $________
+ Vehicles (value): $________    Loan balance: $________
Other assets: $________
diff --git a/activeblue_familylaw/report/report_mandatory_disclosure.xml b/activeblue_familylaw/report/report_mandatory_disclosure.xml index e0554f7..f93df13 100644 --- a/activeblue_familylaw/report/report_mandatory_disclosure.xml +++ b/activeblue_familylaw/report/report_mandatory_disclosure.xml @@ -71,7 +71,7 @@
[ ] PETITIONER — -     +     [ ] RESPONDENT —
@@ -244,7 +244,7 @@ The above documents were provided to by the following method:

- [ ] U.S. Mail    [ ] Email    [ ] Hand Delivery    [ ] E-Filing Portal
+ [ ] U.S. Mail    [ ] Email    [ ] Hand Delivery    [ ] E-Filing Portal
On: _______________________, 20____ diff --git a/activeblue_familylaw/report/report_parenting_plan.xml b/activeblue_familylaw/report/report_parenting_plan.xml index 145414b..93fff88 100644 --- a/activeblue_familylaw/report/report_parenting_plan.xml +++ b/activeblue_familylaw/report/report_parenting_plan.xml @@ -151,8 +151,8 @@ to make major decisions. Reasons: ________________________________

2.2 Ultimate Decision-Making Authority (if shared, for disputes):
- [ ] Parent A (Petitioner)    [ ] Parent B (Respondent)    [ ] Mediator/Arbitrator
- For: [ ] Education    [ ] Healthcare    [ ] Religion    [ ] Extracurricular + [ ] Parent A (Petitioner)    [ ] Parent B (Respondent)    [ ] Mediator/Arbitrator
+ For: [ ] Education    [ ] Healthcare    [ ] Religion    [ ] Extracurricular @@ -193,29 +193,29 @@ 3.2 Holiday Schedule (indicate which parent has each holiday):
- - + + - - + + - - + + - - + + - - + +
New Year's Day:[ ] A   [ ] B   [ ] AltSpring Break:[ ] A   [ ] B   [ ] AltNew Year's Day:[ ] A   [ ] B   [ ] AltSpring Break:[ ] A   [ ] B   [ ] Alt
Memorial Day:[ ] A   [ ] B   [ ] AltIndependence Day:[ ] A   [ ] B   [ ] AltMemorial Day:[ ] A   [ ] B   [ ] AltIndependence Day:[ ] A   [ ] B   [ ] Alt
Labor Day:[ ] A   [ ] B   [ ] AltThanksgiving:[ ] A   [ ] B   [ ] AltLabor Day:[ ] A   [ ] B   [ ] AltThanksgiving:[ ] A   [ ] B   [ ] Alt
Winter Break (1st half):[ ] A   [ ] B   [ ] AltWinter Break (2nd half):[ ] A   [ ] B   [ ] AltWinter Break (1st half):[ ] A   [ ] B   [ ] AltWinter Break (2nd half):[ ] A   [ ] B   [ ] Alt
Mother's Day:[ ] A   [ ] B   [ ] MotherFather's Day:[ ] A   [ ] B   [ ] FatherMother's Day:[ ] A   [ ] B   [ ] MotherFather's Day:[ ] A   [ ] B   [ ] Father

3.3 School Year vs. Summer Schedule:
- School year primary residence: [ ] Parent A    [ ] Parent B    [ ] Same as regular
+ School year primary residence: [ ] Parent A    [ ] Parent B    [ ] Same as regular
Summer schedule: ________________________________________
Summer vacation (each parent): ___ weeks per year, with ___ days advance notice required. @@ -226,7 +226,7 @@
Phone/video access: _____ call(s) per week, between _____ and _____ p.m.
- Method: [ ] Phone    [ ] Video Call (FaceTime/Zoom)    [ ] Text (with parental supervision)
+ Method: [ ] Phone    [ ] Video Call (FaceTime/Zoom)    [ ] Text (with parental supervision)
Emergency contact: Each parent shall provide the other with a current phone number and emergency contact at all times.
@@ -236,9 +236,9 @@ SECTION 5 — TRANSPORTATION / EXCHANGE
- Exchange location: [ ] School    [ ] Neutral location: ________________________
+ Exchange location: [ ] School    [ ] Neutral location: ________________________
[ ] Each parent provides transportation to their own home
- [ ] Transporting parent: [ ] Parent A    [ ] Parent B    [ ] Alternate
+ [ ] Transporting parent: [ ] Parent A    [ ] Parent B    [ ] Alternate
Travel out of state: _____ days advance notice required, written consent or court order required for travel outside U.S.
diff --git a/activeblue_familylaw/views/fl_analysis_views.xml b/activeblue_familylaw/views/fl_analysis_views.xml index 5f62f63..8a4cdd8 100644 --- a/activeblue_familylaw/views/fl_analysis_views.xml +++ b/activeblue_familylaw/views/fl_analysis_views.xml @@ -40,26 +40,26 @@ + invisible="analysis_type != 'attorney'"/> + invisible="analysis_type != 'attorney'"/> + invisible="not risk_narrative"/> + invisible="not risk_narrative"/> + invisible="not cited_statute_ids"/> + invisible="not cited_statute_ids"/> diff --git a/activeblue_familylaw/views/fl_case_views.xml b/activeblue_familylaw/views/fl_case_views.xml index e6cedb5..bd38afe 100644 --- a/activeblue_familylaw/views/fl_case_views.xml +++ b/activeblue_familylaw/views/fl_case_views.xml @@ -17,7 +17,7 @@ groups="activeblue_familylaw.group_admin,activeblue_familylaw.group_paralegal"/> @@ -89,11 +89,11 @@ + invisible="case_type not in ['modification', 'alimony_modification', 'custody_modification']"/> + invisible="case_type not in ['dissolution_children', 'dissolution_no_children', 'alimony_modification']"/> + invisible="case_type not in ['dissolution_children', 'dissolution_no_children', 'alimony_modification']"/> @@ -109,7 +109,7 @@ placeholder="Leave blank if pro se"/> + invisible="not petitioner_fl_resident_since"/> @@ -122,7 +122,7 @@ + invisible="not domestic_violence_flag"/> @@ -144,27 +144,27 @@ + invisible="case_type in ['dissolution_no_children', 'alimony_modification']"> - + invisible="not parenting_class_required"/> + + invisible="not petitioner_parenting_class_done"/> + invisible="not respondent_parenting_class_done"/> + invisible="not parenting_class_required"/> @@ -181,7 +181,7 @@ + invisible="case_type not in ['modification', 'dissolution_children', 'paternity', 'custody_modification']"> @@ -195,18 +195,18 @@ string="Difference %" widget="percentage"/> + invisible="case_type != 'modification'"> + invisible="case_type != 'modification'"/> + invisible="case_type not in ['modification', 'dissolution_children', 'paternity', 'custody_modification']"> @@ -275,11 +275,11 @@ type="object" class="btn-primary" groups="activeblue_familylaw.group_admin"/> + invisible="not attorney_memo_id"/> + invisible="not attorney_memo_id"/> + invisible="not attorney_memo_id"/> @@ -302,7 +302,7 @@