Files
public/rsbu_fns_reporting/models/rsbu_hr_event.py

19 lines
907 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# -*- coding: utf-8 -*-
"""Связь кадрового мероприятия с документом ЕФС-1 (СЗВ-ТД).
Базовая модель кадрового мероприятия rsbu.hr.event определена в модуле
rsbu_payroll (кадровый блок). Привязка к документу ЕФС-1 (rsbu.efs1.szvtd)
живёт здесь, в модуле отчётности, чтобы кадровый блок не зависел от
модуля регламентной отчётности.
"""
from odoo import fields, models
class RsbuHrEvent(models.Model):
_inherit = 'rsbu.hr.event'
efs1_id = fields.Many2one(
'rsbu.efs1.szvtd', string='Документ ЕФС-1', copy=False, index=True,
ondelete='set null',
help='Документ ЕФС-1 (СЗВ-ТД), в который включено мероприятие.')