diff --git a/fusion_claims/views/adp_claims_views.xml b/fusion_claims/views/adp_claims_views.xml index 871f5ce..9724ecf 100644 --- a/fusion_claims/views/adp_claims_views.xml +++ b/fusion_claims/views/adp_claims_views.xml @@ -18,6 +18,7 @@ + @@ -44,6 +45,7 @@ + @@ -77,9 +79,12 @@ + + + @@ -233,12 +238,21 @@ sale.order - - + + - + + + + + sale.order - - + + + + + + + +

No Ontario Works cases yet

+ + + + + Quotation + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'standard'), ('x_fc_odsp_std_status', '=', 'quotation')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'standard'} + + + Submitted to ODSP + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'standard'), ('x_fc_odsp_std_status', '=', 'submitted_to_odsp')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'standard'} + + + Pre-Approved + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'standard'), ('x_fc_odsp_std_status', '=', 'pre_approved')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'standard'} + + + Ready for Delivery + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'standard'), ('x_fc_odsp_std_status', '=', 'ready_delivery')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'standard'} + + + Delivered + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'standard'), ('x_fc_odsp_std_status', '=', 'delivered')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'standard'} + + + POD Submitted + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'standard'), ('x_fc_odsp_std_status', '=', 'pod_submitted')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'standard'} + + + Payment Received + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'standard'), ('x_fc_odsp_std_status', '=', 'payment_received')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'standard'} + + + Case Closed + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'standard'), ('x_fc_odsp_std_status', '=', 'case_closed')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'standard'} + + + On Hold + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'standard'), ('x_fc_odsp_std_status', '=', 'on_hold')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'standard'} + + + Denied + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'standard'), ('x_fc_odsp_std_status', '=', 'denied')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'standard'} + + + Cancelled + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'standard'), ('x_fc_odsp_std_status', '=', 'cancelled')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'standard'} + + + + + + + Quotation + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'sa_mobility'), ('x_fc_sa_status', '=', 'quotation')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'sa_mobility'} + + + SA Form Ready + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'sa_mobility'), ('x_fc_sa_status', '=', 'form_ready')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'sa_mobility'} + + + Submitted to SA Mobility + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'sa_mobility'), ('x_fc_sa_status', '=', 'submitted_to_sa')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'sa_mobility'} + + + Pre-Approved + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'sa_mobility'), ('x_fc_sa_status', '=', 'pre_approved')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'sa_mobility'} + + + Ready for Delivery + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'sa_mobility'), ('x_fc_sa_status', '=', 'ready_delivery')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'sa_mobility'} + + + Delivered + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'sa_mobility'), ('x_fc_sa_status', '=', 'delivered')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'sa_mobility'} + + + POD Submitted + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'sa_mobility'), ('x_fc_sa_status', '=', 'pod_submitted')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'sa_mobility'} + + + Payment Received + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'sa_mobility'), ('x_fc_sa_status', '=', 'payment_received')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'sa_mobility'} + + + Case Closed + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'sa_mobility'), ('x_fc_sa_status', '=', 'case_closed')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'sa_mobility'} + + + On Hold + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'sa_mobility'), ('x_fc_sa_status', '=', 'on_hold')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'sa_mobility'} + + + Denied + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'sa_mobility'), ('x_fc_sa_status', '=', 'denied')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'sa_mobility'} + + + Cancelled + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'sa_mobility'), ('x_fc_sa_status', '=', 'cancelled')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'sa_mobility'} + + + + + + + Quotation + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'ontario_works'), ('x_fc_ow_status', '=', 'quotation')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'ontario_works'} + + + Documents Ready + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'ontario_works'), ('x_fc_ow_status', '=', 'documents_ready')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'ontario_works'} + + + Submitted to Ontario Works + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'ontario_works'), ('x_fc_ow_status', '=', 'submitted_to_ow')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'ontario_works'} + + + Payment Received + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'ontario_works'), ('x_fc_ow_status', '=', 'payment_received')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'ontario_works'} + + + Ready for Delivery + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'ontario_works'), ('x_fc_ow_status', '=', 'ready_delivery')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'ontario_works'} + + + Delivered + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'ontario_works'), ('x_fc_ow_status', '=', 'delivered')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'ontario_works'} + + + Case Closed + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'ontario_works'), ('x_fc_ow_status', '=', 'case_closed')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'ontario_works'} + + + On Hold + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'ontario_works'), ('x_fc_ow_status', '=', 'on_hold')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'ontario_works'} + + + Denied + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'ontario_works'), ('x_fc_ow_status', '=', 'denied')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'ontario_works'} + + + Cancelled + sale.order + list,form,kanban + + + [('x_fc_sale_type', 'in', ['odsp', 'adp_odsp']), ('x_fc_odsp_division', '=', 'ontario_works'), ('x_fc_ow_status', '=', 'cancelled')] + {'default_x_fc_sale_type': 'odsp', 'default_x_fc_odsp_division': 'ontario_works'} + + @@ -894,10 +1261,21 @@ sale.order - - - - + + + + + + + + + + - + - March of Dimes Cases + All MOD Cases sale.order list,kanban,form [('x_fc_sale_type', '=', 'march_of_dimes')] {'default_x_fc_sale_type': 'march_of_dimes'} -

No March of Dimes cases yet

+

No MOD cases yet

+
+ + + Schedule Assessment + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'need_to_schedule')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + Assessment Booked + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'assessment_scheduled')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + Assessment Done + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'assessment_completed')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + Processing Drawing + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'processing_drawings')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + Quote Sent + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'quote_submitted')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + Awaiting Funding + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'awaiting_funding')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + Approved + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'funding_approved')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + PCA Received + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'contract_received')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + In Production + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'in_production')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + Complete + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'project_complete')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + POD Sent + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'pod_submitted')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + Closed + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'case_closed')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + + On Hold + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'on_hold')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + Denied + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'funding_denied')] + {'default_x_fc_sale_type': 'march_of_dimes'} + + + + Cancelled + sale.order + list,kanban,form + + + [('x_fc_sale_type', '=', 'march_of_dimes'), ('x_fc_mod_status', '=', 'cancelled')] + {'default_x_fc_sale_type': 'march_of_dimes'} @@ -1070,6 +1629,90 @@ {'default_move_type': 'out_invoice'} + + + + + + ADP Client Invoices + account.move + list,form + [('x_fc_invoice_type', '=', 'adp_client'), ('move_type', 'in', ['out_invoice', 'out_refund'])] + {'default_move_type': 'out_invoice'} + + + + ODSP Invoices + account.move + list,form + [('x_fc_invoice_type', 'in', ['odsp', 'adp_odsp']), ('move_type', 'in', ['out_invoice', 'out_refund'])] + {'default_move_type': 'out_invoice'} + + + + MOD Invoices + account.move + list,form + [('x_fc_invoice_type', '=', 'march_of_dimes'), ('move_type', 'in', ['out_invoice', 'out_refund'])] + {'default_move_type': 'out_invoice'} + + + + WSIB Invoices + account.move + list,form + [('x_fc_invoice_type', '=', 'wsib'), ('move_type', 'in', ['out_invoice', 'out_refund'])] + {'default_move_type': 'out_invoice'} + + + + Insurance Invoices + account.move + list,form + [('x_fc_invoice_type', '=', 'insurance'), ('move_type', 'in', ['out_invoice', 'out_refund'])] + {'default_move_type': 'out_invoice'} + + + + Direct/Private Invoices + account.move + list,form + [('x_fc_invoice_type', '=', 'direct_private'), ('move_type', 'in', ['out_invoice', 'out_refund'])] + {'default_move_type': 'out_invoice'} + + + + Hardship Invoices + account.move + list,form + [('x_fc_invoice_type', '=', 'hardship'), ('move_type', 'in', ['out_invoice', 'out_refund'])] + {'default_move_type': 'out_invoice'} + + + + Rental Invoices + account.move + list,form + [('x_fc_invoice_type', '=', 'rental'), ('move_type', 'in', ['out_invoice', 'out_refund'])] + {'default_move_type': 'out_invoice'} + + + + Muscular Dystrophy Invoices + account.move + list,form + [('x_fc_invoice_type', '=', 'muscular_dystrophy'), ('move_type', 'in', ['out_invoice', 'out_refund'])] + {'default_move_type': 'out_invoice'} + + + + Other Invoices + account.move + list,form + [('x_fc_invoice_type', '=', 'other'), ('move_type', 'in', ['out_invoice', 'out_refund'])] + {'default_move_type': 'out_invoice'} + + Ask Fusion Claims AI @@ -1102,11 +1745,15 @@ else: name="Fusion Claims" web_icon="fusion_claims,static/description/icon.png" sequence="30" - groups="group_fusion_claims_user,group_field_technician"/> + groups="group_fusion_claims_user,fusion_tasks.group_field_technician"/> + + + + + + + + sequence="10"/> + + + + + + + + + + + + + + + + sequence="20"/> + + + + + + + + + + + + + + + + - + sequence="30"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1292,6 +2066,24 @@ else: + + + + + + + + + + - - - - + + + + + sale.order.form.fusion.central.salesperson + sale.order + + 51 + + + + + + + + @@ -1077,6 +1088,13 @@ invisible="x_fc_technician_task_count == 0"> + + + @@ -1183,13 +1201,25 @@ invisible="not x_fc_is_adp_sale or x_fc_adp_application_status != 'quotation'" help="Move to Assessment Scheduled status"/> - +