This commit is contained in:
gsinghpal
2026-02-24 01:18:44 -05:00
parent e8e554de95
commit f85658c03a
41 changed files with 4440 additions and 119 deletions

View File

@@ -7,4 +7,5 @@ from . import adp_document
from . import assessment
from . import accessibility_assessment
from . import sale_order
from . import loaner_checkout
from . import pdf_template

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
from odoo import api, fields, models, _
class FusionLoanerCheckoutAssessment(models.Model):
_inherit = 'fusion.loaner.checkout'
assessment_id = fields.Many2one(
'fusion.assessment',
string='Assessment',
ondelete='set null',
tracking=True,
help='Assessment during which this loaner was issued',
)
def action_view_assessment(self):
self.ensure_one()
if not self.assessment_id:
return
return {
'name': self.assessment_id.display_name,
'type': 'ir.actions.act_window',
'res_model': 'fusion.assessment',
'view_mode': 'form',
'res_id': self.assessment_id.id,
}