feat: customizable portal gradient theme + LTC repair form fixes

- Add portal gradient branding settings with 4 presets (Green/Teal,
  Blue/Purple, Sunset Orange, Dark Slate) and custom color picker
- Live preview in settings, onchange updates colors reactively
- Dynamic gradient applied across portal home, CSS, and card elements
- Fix after photos visibility (conditional on resolved=yes)
- Fix technician section gating on portal repair form
- Move Create Sale Order button to form header for visibility
- Fix portal home row width inconsistency (xpath target change)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
gsinghpal
2026-02-24 02:53:55 -05:00
parent f85658c03a
commit 9d9453b5c8
7 changed files with 226 additions and 41 deletions

View File

@@ -10,6 +10,9 @@
<field name="arch" type="xml">
<form string="Repair Request">
<header>
<button name="action_create_sale_order" type="object"
string="Create Sale Order" class="btn-primary"
invisible="sale_order_id"/>
<field name="stage_id" widget="statusbar"
options="{'clickable': '1'}"/>
</header>
@@ -98,9 +101,6 @@
<field name="repair_value"/>
</group>
</group>
<button name="action_create_sale_order" type="object"
string="Create Sale Order" class="btn-primary"
invisible="sale_order_id"/>
</page>
<page string="Photos &amp; Notes" name="photos">