feat: separate fusion field service and LTC into standalone modules, update core modules

- fusion_claims: separated field service logic, updated controllers/views
- fusion_tasks: updated task views and map integration
- fusion_authorizer_portal: added page 11 signing, schedule booking, migrations
- fusion_shipping: new standalone shipping module (Canada Post, FedEx, DHL, Purolator)
- fusion_ltc_management: new standalone LTC management module
This commit is contained in:
2026-03-11 16:19:52 +00:00
parent 1f79cdcaaf
commit 431052920e
274 changed files with 52782 additions and 7302 deletions

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
# Copyright 2024-2026 Nexa Systems Inc.
# License OPL-1 (Odoo Proprietary License v1.0)
"""
Fusion Technician Task - LTC Extension
Adds LTC facility field and onchange behavior
to the base fusion.technician.task model.
"""
from odoo import models, fields, api, _
class FusionTechnicianTaskLTC(models.Model):
_inherit = 'fusion.technician.task'
facility_id = fields.Many2one(
'fusion.ltc.facility',
string='LTC Facility',
tracking=True,
help='LTC Home for this visit',
)
@api.onchange('facility_id')
def _onchange_facility_id(self):
"""Auto-fill address from the LTC facility."""
if self.facility_id and self.task_type == 'ltc_visit':
fac = self.facility_id
self.address_street = fac.street or ''
self.address_street2 = fac.street2 or ''
self.address_city = fac.city or ''
self.address_state_id = fac.state_id.id if fac.state_id else False
self.address_zip = fac.zip or ''
self.description = self.description or _(
'LTC Visit at %s', fac.name
)
@api.onchange('task_type')
def _onchange_task_type_ltc(self):
if self.task_type == 'ltc_visit':
self.sale_order_id = False
self.purchase_order_id = False