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:
@@ -14,24 +14,24 @@
|
||||
<button name="action_override" string="Override Conflict"
|
||||
type="object" class="oe_highlight"
|
||||
confirm="Override this conflict of interest? This allows the case to advance past Intake. A justification is required."
|
||||
attrs="{'invisible': [('status', '!=', 'conflict')]}"
|
||||
invisible="status != 'conflict'"
|
||||
groups="activeblue_familylaw.group_admin"/>
|
||||
<field name="status" widget="statusbar"
|
||||
statusbar_visible="clear,conflict,override"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="alert alert-success" role="alert"
|
||||
attrs="{'invisible': [('status', '!=', 'clear')]}">
|
||||
invisible="status != 'clear'">
|
||||
<strong>✅ CLEAR</strong> — No conflicting parties found on other open cases.
|
||||
</div>
|
||||
<div class="alert alert-danger" role="alert"
|
||||
attrs="{'invisible': [('status', '!=', 'conflict')]}">
|
||||
invisible="status != 'conflict'">
|
||||
<strong>🚩 CONFLICT DETECTED</strong> — One or more parties match
|
||||
parties on other open cases. The case cannot advance past Intake
|
||||
until this is overridden by an administrator.
|
||||
</div>
|
||||
<div class="alert alert-warning" role="alert"
|
||||
attrs="{'invisible': [('status', '!=', 'override')]}">
|
||||
invisible="status != 'override'">
|
||||
<strong>⚠ OVERRIDDEN</strong> — This conflict was overridden by
|
||||
<field name="override_user_id" readonly="1" nolabel="1" class="oe_inline"/>
|
||||
on <field name="override_date" readonly="1" nolabel="1" class="oe_inline"/>.
|
||||
@@ -43,16 +43,16 @@
|
||||
</group>
|
||||
<group>
|
||||
<field name="matched_case_ids" widget="many2many_tags"
|
||||
attrs="{'invisible': [('matched_case_ids', '=', [])]}"/>
|
||||
invisible="not matched_case_ids"/>
|
||||
</group>
|
||||
</group>
|
||||
<separator string="Match Detail"/>
|
||||
<field name="match_detail" nolabel="1" readonly="1"/>
|
||||
<separator string="Override Justification"
|
||||
attrs="{'invisible': [('status', '=', 'clear')]}"/>
|
||||
invisible="status == 'clear'"/>
|
||||
<field name="override_justification" nolabel="1"
|
||||
placeholder="Required to override a conflict — explain why the firm may proceed despite the match."
|
||||
attrs="{'invisible': [('status', '=', 'clear')], 'readonly': [('status', '=', 'override')]}"/>
|
||||
invisible="status == 'clear'" readonly="status == 'override'"/>
|
||||
</sheet>
|
||||
<div class="oe_chatter">
|
||||
<field name="message_follower_ids"/>
|
||||
|
||||
Reference in New Issue
Block a user