Initial commit

This commit is contained in:
gsinghpal
2026-02-22 01:22:18 -05:00
commit 5200d5baf0
2394 changed files with 386834 additions and 0 deletions

View File

@@ -0,0 +1,723 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!-- ================================================================= -->
<!-- CLIENT PROFILE VIEWS -->
<!-- ================================================================= -->
<!-- Form View -->
<record id="view_fusion_client_profile_form" model="ir.ui.view">
<field name="name">fusion.client.profile.form</field>
<field name="model">fusion.client.profile</field>
<field name="arch" type="xml">
<form string="Client Profile">
<header>
<button name="action_open_ai_chat" type="object"
string="Ask AI" icon="fa-comments"
class="btn-primary"/>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button name="action_view_claims" type="object"
class="oe_stat_button" icon="fa-folder-open">
<field name="claim_count" widget="statinfo" string="Claims"/>
</button>
<button name="action_view_applications" type="object"
class="oe_stat_button" icon="fa-file-text">
<field name="application_count" widget="statinfo" string="Applications"/>
</button>
</div>
<div class="oe_title mb-3">
<label for="partner_id" string="Odoo Contact"/>
<h1>
<field name="partner_id" placeholder="Link to Contact..." style="font-size: 1.5rem;"/>
</h1>
</div>
<group>
<group string="Identification">
<field name="first_name"/>
<field name="middle_initial" invisible="not middle_initial"/>
<field name="last_name"/>
<field name="health_card_number"/>
<field name="health_card_version"/>
<field name="date_of_birth"/>
<field name="ltch_name"/>
</group>
<group string="Financials">
<field name="total_adp_funded" widget="monetary"/>
<field name="total_client_portion" widget="monetary"/>
<field name="total_amount" widget="monetary"/>
<field name="currency_id" invisible="1"/>
<field name="last_assessment_date"/>
</group>
</group>
<notebook>
<page string="Address &amp; Contact" name="address">
<group>
<group string="Address">
<field name="unit_number"/>
<field name="street_number"/>
<field name="street_name"/>
<field name="rural_route"/>
<field name="city"/>
<field name="province"/>
<field name="postal_code"/>
</group>
<group string="Contact">
<field name="home_phone" widget="phone"/>
<field name="business_phone" widget="phone"/>
<field name="phone_extension"/>
</group>
</group>
</page>
<page string="Medical &amp; Benefits" name="medical">
<group>
<group string="Benefits Eligibility">
<field name="receives_social_assistance"/>
<field name="benefit_type"
invisible="not receives_social_assistance"/>
<field name="wsib_eligible"/>
<field name="vac_eligible"/>
</group>
</group>
<separator string="Current Medical Condition / Diagnosis"/>
<field name="medical_condition" nolabel="1"
placeholder="Medical condition/diagnosis from latest application..."/>
<separator string="Functional Mobility Status"/>
<field name="mobility_status" nolabel="1"
placeholder="Functional mobility status from latest application..."/>
</page>
<page string="Application History" name="applications">
<field name="application_data_ids" nolabel="1">
<list>
<field name="application_date"/>
<field name="device_category"/>
<field name="base_device"/>
<field name="reason_for_application"/>
<field name="authorizer_first_name"/>
<field name="authorizer_last_name"/>
<field name="sections_submitted"/>
<field name="sale_order_id"/>
</list>
</field>
</page>
<page string="AI Analysis" name="ai">
<group string="Summary">
<field name="ai_summary" nolabel="1" readonly="1" widget="text"/>
</group>
<group string="Risk Flags">
<field name="ai_risk_flags" nolabel="1" readonly="1" widget="text"/>
</group>
</page>
</notebook>
</sheet>
<chatter/>
</form>
</field>
</record>
<!-- List View -->
<record id="view_fusion_client_profile_list" model="ir.ui.view">
<field name="name">fusion.client.profile.list</field>
<field name="model">fusion.client.profile</field>
<field name="arch" type="xml">
<list string="Client Profiles">
<field name="last_name"/>
<field name="first_name"/>
<field name="health_card_number"/>
<field name="date_of_birth"/>
<field name="city"/>
<field name="claim_count"/>
<field name="total_adp_funded" widget="monetary" sum="Total ADP"/>
<field name="total_client_portion" widget="monetary" sum="Total Client"/>
<field name="last_assessment_date"/>
<field name="currency_id" column_invisible="1"/>
</list>
</field>
</record>
<!-- Search View -->
<record id="view_fusion_client_profile_search" model="ir.ui.view">
<field name="name">fusion.client.profile.search</field>
<field name="model">fusion.client.profile</field>
<field name="arch" type="xml">
<search string="Search Client Profiles">
<field name="first_name"/>
<field name="last_name"/>
<field name="health_card_number"/>
<field name="city"/>
<field name="postal_code"/>
<field name="medical_condition"/>
<separator/>
<filter string="Has Active Claims" name="has_claims"
domain="[('claim_count', '>', 0)]"/>
<filter string="Receives Social Assistance" name="social_assistance"
domain="[('receives_social_assistance', '=', True)]"/>
<filter string="WSIB Eligible" name="wsib"
domain="[('wsib_eligible', '=', True)]"/>
<separator/>
<filter string="City" name="group_city" context="{'group_by': 'city'}"/>
<filter string="Province" name="group_province" context="{'group_by': 'province'}"/>
<filter string="Benefit Type" name="group_benefit" context="{'group_by': 'benefit_type'}"/>
</search>
</field>
</record>
<!-- Action -->
<record id="action_fusion_client_profiles" model="ir.actions.act_window">
<field name="name">Client Profiles</field>
<field name="res_model">fusion.client.profile</field>
<field name="view_mode">list,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
No client profiles yet
</p>
<p>
Client profiles are automatically created when ADP XML files are
uploaded to sale orders or imported via Configuration > Import XML Files.
</p>
</field>
</record>
<!-- ================================================================= -->
<!-- ADP APPLICATION DATA VIEWS -->
<!-- ================================================================= -->
<!-- Application Data Form View -->
<record id="view_fusion_adp_application_data_form" model="ir.ui.view">
<field name="name">fusion.adp.application.data.form</field>
<field name="model">fusion.adp.application.data</field>
<field name="arch" type="xml">
<form string="ADP Application Data">
<header>
<button name="action_export_xml" type="object"
string="Export XML" icon="fa-download"
class="btn-secondary"/>
</header>
<sheet>
<!-- Top summary -->
<group>
<group string="Application Info">
<field name="profile_id"/>
<field name="sale_order_id"/>
<field name="device_category"/>
<field name="version_number"/>
<field name="application_date"/>
<field name="sections_submitted"/>
</group>
<group string="Applicant">
<field name="applicant_first_name"/>
<field name="applicant_last_name"/>
<field name="applicant_middle_initial"/>
<field name="health_card_number"/>
<field name="health_card_version"/>
<field name="date_of_birth"/>
</group>
</group>
<notebook>
<!-- ========== SECTION 1 ========== -->
<page string="Section 1 - Applicant" name="section1">
<group>
<group string="Address">
<field name="unit_number"/>
<field name="street_number"/>
<field name="street_name"/>
<field name="rural_route"/>
<field name="city"/>
<field name="province"/>
<field name="postal_code"/>
</group>
<group string="Contact">
<field name="home_phone" widget="phone"/>
<field name="business_phone" widget="phone"/>
<field name="phone_extension"/>
<field name="ltch_name"/>
</group>
</group>
<group string="Confirmation of Benefits">
<group>
<field name="receives_social_assistance"/>
<field name="benefit_owp"/>
<field name="benefit_odsp"/>
<field name="benefit_acsd"/>
</group>
<group>
<field name="wsib_eligible"/>
<field name="vac_eligible"/>
</group>
</group>
</page>
<!-- ========== SECTION 2 - DEVICES ========== -->
<page string="Section 2 - Devices" name="section2">
<group string="Medical Condition and Mobility Status">
<field name="medical_condition" nolabel="1" placeholder="Presenting medical condition..."/>
</group>
<group>
<field name="mobility_status" nolabel="1" placeholder="Functional mobility status..."/>
</group>
<separator string="Mobility Equipment Previously Funded by ADP"/>
<group>
<group>
<field name="prev_funded_none"/>
<field name="prev_funded_forearm"/>
<field name="prev_funded_wheeled"/>
<field name="prev_funded_manual"/>
<field name="prev_funded_power"/>
</group>
<group>
<field name="prev_funded_addon"/>
<field name="prev_funded_scooter"/>
<field name="prev_funded_seating"/>
<field name="prev_funded_tilt"/>
<field name="prev_funded_recline"/>
<field name="prev_funded_legrests"/>
<field name="prev_funded_frame"/>
<field name="prev_funded_stroller"/>
</group>
</group>
<separator string="Devices Currently Required"/>
<group>
<group>
<field name="device_forearm_crutches"/>
<field name="device_wheeled_walker"/>
<field name="device_manual_wheelchair"/>
<field name="device_ambulation_manual"/>
<field name="device_dependent_wheelchair"/>
<field name="device_dynamic_tilt"/>
<field name="device_manual_dynamic"/>
<field name="device_manual_power_addon"/>
</group>
<group>
<field name="device_power_base"/>
<field name="device_power_scooter"/>
<field name="device_ambulation_power"/>
<field name="device_positioning"/>
<field name="device_high_tech"/>
<field name="device_standing_frame"/>
<field name="device_adp_funded_mods"/>
<field name="device_non_adp_funded_mods"/>
</group>
</group>
</page>
<!-- ========== SECTION 2A - WALKERS ========== -->
<page string="Section 2a - Walkers" name="section2a">
<group>
<group string="Base Device">
<field name="s2a_base_device"/>
<field name="s2a_paediatric_frame"/>
<field name="s2a_forearm_crutches"/>
</group>
<group string="Reason for Application">
<field name="s2a_reason"/>
<field name="s2a_replacement_status"/>
<field name="s2a_replacement_size"/>
<field name="s2a_replacement_adp"/>
<field name="s2a_replacement_special"/>
</group>
</group>
<group string="Prescription Details">
<group>
<field name="s2a_seat_height"/>
<field name="s2a_seat_height_unit"/>
<field name="s2a_handle_height"/>
<field name="s2a_handle_height_unit"/>
<field name="s2a_hand_grips"/>
<field name="s2a_forearm_attachments"/>
</group>
<group>
<field name="s2a_width_handles"/>
<field name="s2a_width_handles_unit"/>
<field name="s2a_client_weight"/>
<field name="s2a_client_weight_unit"/>
<field name="s2a_brakes"/>
<field name="s2a_brake_type"/>
<field name="s2a_num_wheels"/>
<field name="s2a_wheel_size"/>
<field name="s2a_back_support"/>
</group>
</group>
<group string="Eligibility Confirmations">
<group>
<field name="s2a_confirm1"/>
<field name="s2a_confirm2"/>
<field name="s2a_confirm3"/>
</group>
<group>
<field name="s2a_confirm4"/>
<field name="s2a_confirm5"/>
<field name="s2a_confirm6"/>
</group>
</group>
<group>
<group>
<field name="s2a_custom"/>
<field name="s2a_cost_labour"/>
</group>
</group>
</page>
<!-- ========== SECTION 2B - MANUAL WHEELCHAIRS ========== -->
<page string="Section 2b - Manual Chairs" name="section2b">
<group>
<group string="Base Device">
<field name="s2b_base_device"/>
<field name="s2b_power_addon"/>
</group>
<group string="Reason for Application">
<field name="s2b_reason"/>
<field name="s2b_replacement_status"/>
<field name="s2b_replacement_size"/>
<field name="s2b_replacement_adp"/>
<field name="s2b_replacement_special"/>
</group>
</group>
<group string="Prescription Details">
<group>
<field name="s2b_seat_width"/>
<field name="s2b_seat_width_unit"/>
<field name="s2b_seat_depth"/>
<field name="s2b_seat_depth_unit"/>
<field name="s2b_floor_height"/>
<field name="s2b_floor_height_unit"/>
<field name="s2b_cane_height"/>
<field name="s2b_cane_height_unit"/>
</group>
<group>
<field name="s2b_back_height"/>
<field name="s2b_back_height_unit"/>
<field name="s2b_rest_length"/>
<field name="s2b_rest_length_unit"/>
<field name="s2b_client_weight"/>
<field name="s2b_client_weight_unit"/>
</group>
</group>
<separator string="Additional ADP Funded Options"/>
<group>
<group>
<field name="s2b_adjustable_tension"/>
<field name="s2b_heavy_duty"/>
<field name="s2b_recliner"/>
<field name="s2b_footplates"/>
<field name="s2b_legrests"/>
<field name="s2b_spoke"/>
<field name="s2b_projected"/>
<field name="s2b_standard_manual"/>
<field name="s2b_grade_aids"/>
<field name="s2b_caster_pin"/>
</group>
<group>
<field name="s2b_amputee_axle"/>
<field name="s2b_quick_release"/>
<field name="s2b_stroller"/>
<field name="s2b_oxygen"/>
<field name="s2b_ventilator"/>
<field name="s2b_titanium"/>
<field name="s2b_clothing_guards"/>
<field name="s2b_one_arm"/>
<field name="s2b_uni_lateral"/>
<field name="s2b_plastic"/>
</group>
</group>
<group>
<field name="s2b_rationale" nolabel="1" placeholder="Clinical rationale..."/>
<field name="s2b_custom"/>
<field name="s2b_cost_labour"/>
</group>
</page>
<!-- ========== SECTION 2C - POWER BASES / SCOOTERS ========== -->
<page string="Section 2c - Power/Scooter" name="section2c">
<group>
<group string="Base Device">
<field name="s2c_base_device"/>
</group>
<group string="Reason for Application">
<field name="s2c_reason"/>
<field name="s2c_replacement_status"/>
<field name="s2c_replacement_size"/>
<field name="s2c_replacement_adp"/>
<field name="s2c_replacement_special"/>
</group>
</group>
<group string="Prescription Details">
<group>
<field name="s2c_seat_width"/>
<field name="s2c_seat_width_unit"/>
<field name="s2c_back_height"/>
<field name="s2c_back_height_unit"/>
<field name="s2c_floor_height"/>
<field name="s2c_floor_height_unit"/>
</group>
<group>
<field name="s2c_rest_length"/>
<field name="s2c_rest_length_unit"/>
<field name="s2c_seat_depth"/>
<field name="s2c_seat_depth_unit"/>
<field name="s2c_client_weight"/>
<field name="s2c_client_weight_unit"/>
</group>
</group>
<separator string="Additional ADP Funded Options"/>
<group>
<group>
<field name="s2c_adjustable_tension"/>
<field name="s2c_midline"/>
<field name="s2c_manual_recline"/>
<field name="s2c_footplates"/>
<field name="s2c_legrests"/>
<field name="s2c_swingaway"/>
</group>
<group>
<field name="s2c_one_piece"/>
<field name="s2c_seat_package_1"/>
<field name="s2c_seat_package_2"/>
<field name="s2c_oxygen"/>
<field name="s2c_ventilator"/>
</group>
</group>
<separator string="Specialty Controls"/>
<group>
<group>
<field name="s2c_sp_controls_1"/>
<field name="s2c_sp_controls_2"/>
<field name="s2c_sp_controls_3"/>
<field name="s2c_sp_controls_4"/>
</group>
<group>
<field name="s2c_sp_controls_5"/>
<field name="s2c_sp_controls_6"/>
<field name="s2c_auto_correction"/>
</group>
</group>
<separator string="Power Positioning Devices"/>
<group>
<group>
<field name="s2c_power_tilt"/>
<field name="s2c_power_recline"/>
<field name="s2c_tilt_and_recline"/>
</group>
<group>
<field name="s2c_power_elevating"/>
<field name="s2c_control_box"/>
</group>
</group>
<group>
<field name="s2c_rationale" nolabel="1" placeholder="Clinical rationale..."/>
<field name="s2c_custom"/>
<field name="s2c_cost_labour"/>
</group>
<group string="Eligibility Confirmations">
<group>
<field name="s2c_confirm1"/>
<field name="s2c_confirm2"/>
<field name="s2c_confirm3"/>
</group>
<group>
<field name="s2c_confirm4"/>
<field name="s2c_confirm5"/>
</group>
</group>
</page>
<!-- ========== SECTION 2D - POSITIONING/SEATING ========== -->
<page string="Section 2d - Seating" name="section2d">
<group string="Seat Cushion">
<group>
<field name="s2d_seat_modular"/>
<field name="s2d_seat_custom"/>
<field name="s2d_seat_cover_modular"/>
<field name="s2d_seat_cover_custom"/>
<field name="s2d_seat_option_modular"/>
<field name="s2d_seat_option_custom"/>
</group>
<group>
<field name="s2d_seat_hardware_modular"/>
<field name="s2d_seat_hardware_custom"/>
<field name="s2d_adductor_modular"/>
<field name="s2d_adductor_custom"/>
<field name="s2d_pommel_custom"/>
</group>
</group>
<group string="Back Support">
<group>
<field name="s2d_back_modular"/>
<field name="s2d_back_custom"/>
<field name="s2d_back_option_modular"/>
<field name="s2d_back_option_custom"/>
</group>
<group>
<field name="s2d_back_cover_custom"/>
<field name="s2d_back_hardware_modular"/>
<field name="s2d_back_hardware_custom"/>
</group>
</group>
<group string="Headrest, Belt, Arm, Tray, Lateral, Foot Supports">
<group>
<field name="s2d_complete_modular"/>
<field name="s2d_complete_custom"/>
<field name="s2d_headrest_modular"/>
<field name="s2d_headrest_custom"/>
<field name="s2d_head_option_custom"/>
<field name="s2d_head_hardware_modular"/>
<field name="s2d_head_hardware_custom"/>
<field name="s2d_belt_modular"/>
<field name="s2d_belt_custom"/>
<field name="s2d_belt_option_custom"/>
<field name="s2d_arm_modular"/>
<field name="s2d_arm_custom"/>
<field name="s2d_arm_option_modular"/>
<field name="s2d_arm_option_custom"/>
</group>
<group>
<field name="s2d_arm_hardware_modular"/>
<field name="s2d_arm_hardware_custom"/>
<field name="s2d_tray_modular"/>
<field name="s2d_tray_custom"/>
<field name="s2d_tray_option_modular"/>
<field name="s2d_tray_option_custom"/>
<field name="s2d_lateral_modular"/>
<field name="s2d_lateral_custom"/>
<field name="s2d_lateral_option_custom"/>
<field name="s2d_lateral_hardware_custom"/>
<field name="s2d_foot_modular"/>
<field name="s2d_foot_custom"/>
<field name="s2d_foot_option_modular"/>
<field name="s2d_foot_option_custom"/>
<field name="s2d_foot_hardware_modular"/>
<field name="s2d_foot_hardware_custom"/>
</group>
</group>
<group string="Application Details">
<group>
<field name="s2d_reason"/>
<field name="s2d_replacement_status"/>
<field name="s2d_replacement_size"/>
<field name="s2d_replacement_adp"/>
<field name="s2d_replacement_special"/>
</group>
<group>
<field name="s2d_confirm1"/>
<field name="s2d_confirm2"/>
<field name="s2d_custom"/>
<field name="s2d_cost_labour"/>
</group>
</group>
</page>
<!-- ========== SECTION 3 - CONSENT ========== -->
<page string="Section 3 - Consent" name="section3">
<group>
<group string="Applicant Signature">
<field name="consent_date"/>
<field name="consent_signed_by"/>
</group>
<group string="Agent/Contact (if applicable)">
<field name="agent_relationship"/>
<field name="agent_first_name"/>
<field name="agent_last_name"/>
<field name="agent_city"/>
<field name="agent_province"/>
<field name="agent_postal_code"/>
<field name="agent_home_phone" widget="phone"/>
<field name="agent_bus_phone" widget="phone"/>
</group>
</group>
</page>
<!-- ========== SECTION 4 - AUTHORIZER & VENDOR ========== -->
<page string="Section 4 - Signatures" name="section4">
<group>
<group string="Authorizer">
<field name="authorizer_first_name"/>
<field name="authorizer_last_name"/>
<field name="authorizer_phone" widget="phone"/>
<field name="authorizer_phone_ext"/>
<field name="authorizer_adp_number"/>
<field name="assessment_date"/>
</group>
<group string="Vendor 1">
<field name="vendor_business_name"/>
<field name="vendor_adp_number"/>
<field name="vendor_representative"/>
<field name="vendor_position"/>
<field name="vendor_location"/>
<field name="vendor_phone" widget="phone"/>
<field name="vendor_phone_ext"/>
<field name="vendor_sign_date"/>
</group>
</group>
<group>
<group string="Vendor 2">
<field name="vendor2_business_name"/>
<field name="vendor2_adp_number"/>
<field name="vendor2_representative"/>
<field name="vendor2_position"/>
<field name="vendor2_location"/>
<field name="vendor2_phone" widget="phone"/>
<field name="vendor2_sign_date"/>
</group>
<group string="Equipment Specification (Page 12)">
<field name="equip_vendor_invoice_no"/>
<field name="equip_vendor_adp_reg"/>
<field name="equip_cell1"/>
<field name="equip_cell2"/>
<field name="equip_cell3"/>
<field name="equip_cell4"/>
<field name="equip_cell5"/>
</group>
</group>
<group>
<group string="Proof of Delivery">
<field name="pod_received_by"/>
<field name="pod_date"/>
</group>
<group string="Sections Submitted to ADP">
<field name="note_section1"/>
<field name="note_section2a"/>
<field name="note_section2b"/>
<field name="note_section2c"/>
<field name="note_section2d"/>
<field name="note_section3and4"/>
<field name="note_vendor_replacement"/>
<field name="note_vendor_custom"/>
<field name="note_funding_chart"/>
<field name="note_letter"/>
</group>
</group>
</page>
<!-- ========== RAW XML ========== -->
<page string="Raw XML" name="raw">
<field name="raw_xml" widget="text" readonly="1"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Application Data List View -->
<record id="view_fusion_adp_application_data_list" model="ir.ui.view">
<field name="name">fusion.adp.application.data.list</field>
<field name="model">fusion.adp.application.data</field>
<field name="arch" type="xml">
<list string="ADP Application Data">
<field name="applicant_last_name"/>
<field name="applicant_first_name"/>
<field name="health_card_number"/>
<field name="application_date"/>
<field name="device_category"/>
<field name="base_device"/>
<field name="reason_for_application"/>
<field name="city"/>
<field name="sections_submitted"/>
<field name="sale_order_id"/>
<field name="profile_id"/>
</list>
</field>
</record>
</odoo>