This commit is contained in:
gsinghpal
2026-03-16 08:14:56 -04:00
parent fdca9518ab
commit e56974d46f
196 changed files with 19739 additions and 3471 deletions

View File

@@ -1074,13 +1074,6 @@
invisible="not x_fc_is_mod_sale or x_fc_mod_client_invoice_count == 0">
<field name="x_fc_mod_client_invoice_count" widget="statinfo" string="Client Invoice"/>
</button>
<!-- Loaner Equipment Button -->
<button name="action_view_loaners" type="object"
class="oe_stat_button" icon="fa-wheelchair"
invisible="x_fc_loaner_count == 0">
<field name="x_fc_loaner_count" widget="statinfo" string="Loaners"/>
</button>
<!-- Technician Tasks Button -->
<button name="action_view_technician_tasks" type="object"
@@ -1186,7 +1179,6 @@
<field name="x_fc_device_verification_complete" invisible="1"/>
<field name="x_fc_submission_verified" invisible="1"/>
<field name="x_fc_adp_application_status" invisible="1"/>
<field name="x_fc_active_loaner_count" invisible="1"/>
<field name="x_fc_early_delivery" invisible="1"/>
<!-- ============================================================ -->
@@ -1340,36 +1332,6 @@
</xpath>
<!-- ============================================================ -->
<!-- LOANER BUTTONS - Positioned AFTER all standard Odoo buttons -->
<!-- (after Cancel, before the statusbar widget) -->
<!-- ============================================================ -->
<xpath expr="//header/field[@name='state']" position="before">
<field name="x_fc_is_adp_sale" invisible="1"/>
<field name="x_fc_active_loaner_count" invisible="1"/>
<field name="x_fc_has_overdue_loaner" invisible="1"/>
<!-- Checkout Loaner: only when NO active loaners -->
<button name="action_checkout_loaner" type="object"
string="Checkout Loaner" class="btn-secondary"
icon="fa-wheelchair"
invisible="not x_fc_is_adp_sale or x_fc_active_loaner_count &gt; 0 or x_fc_adp_application_status not in ('assessment_scheduled', 'assessment_completed', 'waiting_for_application', 'application_received', 'ready_submission', 'submitted', 'resubmitted', 'accepted', 'approved', 'approved_deduction', 'ready_delivery')"
help="Checkout loaner equipment for the client"/>
<!-- Checkin Loaner: GREEN when within return period -->
<button name="action_checkin_loaner" type="object"
string="Checkin Loaner" class="fc-btn-status-good"
icon="fa-clock-o"
invisible="not x_fc_is_adp_sale or x_fc_active_loaner_count == 0 or x_fc_has_overdue_loaner"
help="Loaner within return period - click to check in"/>
<!-- Checkin Loaner: RED when past return period -->
<button name="action_checkin_loaner" type="object"
string="Checkin Loaner" class="fc-btn-status-bad"
icon="fa-exclamation-circle"
invisible="not x_fc_is_adp_sale or x_fc_active_loaner_count == 0 or not x_fc_has_overdue_loaner"
help="Loaner OVERDUE - click to check in"/>
</xpath>
</field>
</record>