- 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
31 lines
915 B
Python
31 lines
915 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2024-2026 Nexa Systems Inc.
|
|
# License OPL-1 (Odoo Proprietary License v1.0)
|
|
|
|
from odoo import models, fields, api
|
|
|
|
|
|
class SaleOrder(models.Model):
|
|
_inherit = 'sale.order'
|
|
|
|
# ==========================================================================
|
|
# LTC REPAIR LINK
|
|
# ==========================================================================
|
|
x_fc_ltc_repair_id = fields.Many2one(
|
|
'fusion.ltc.repair',
|
|
string='LTC Repair',
|
|
tracking=True,
|
|
ondelete='set null',
|
|
index=True,
|
|
)
|
|
x_fc_is_ltc_repair_sale = fields.Boolean(
|
|
compute='_compute_is_ltc_repair_sale',
|
|
store=True,
|
|
string='Is LTC Repair Sale',
|
|
)
|
|
|
|
@api.depends('x_fc_ltc_repair_id')
|
|
def _compute_is_ltc_repair_sale(self):
|
|
for order in self:
|
|
order.x_fc_is_ltc_repair_sale = bool(order.x_fc_ltc_repair_id)
|