Files
dn20/ai_hr_recruitment_integration_website_livechat/models/hr_job.py
2026-11-08 20:08:53 +08:00

11 lines
346 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class HrJob(models.Model):
_name = 'hr.job'
_inherit = ['hr.job', 'ai.preview.card.mixin']
def _ai_get_preview_cards_render_context(self):
return ('website_hr_recruitment.job_card', [{'job': record} for record in self], '')