Files
public/ruodoo_rsbu_mil/models/res_config_settings.py

36 lines
1.8 KiB
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 -*-
"""Реквизиты воинского учёта организации в настройках."""
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
rsbu_mil_responsible = fields.Char(
related='company_id.rsbu_mil_responsible', readonly=False,
string='Ответственный за ВУ')
rsbu_mil_responsible_phone = fields.Char(
related='company_id.rsbu_mil_responsible_phone', readonly=False,
string='Телефон ответственного за ВУ')
rsbu_mil_does_booking = fields.Boolean(
related='company_id.rsbu_mil_does_booking', readonly=False,
string='Ведёт бронирование')
rsbu_mil_booking_list_section = fields.Char(
related='company_id.rsbu_mil_booking_list_section', readonly=False,
string='Номер и раздел перечня бронирования')
rsbu_mil_reg_number = fields.Char(
related='company_id.rsbu_mil_reg_number', readonly=False,
string='Рег. номер (районная комиссия)')
rsbu_mil_parent_org = fields.Char(
related='company_id.rsbu_mil_parent_org', readonly=False,
string='Вышестоящая организация')
rsbu_mil_jurisdiction = fields.Char(
related='company_id.rsbu_mil_jurisdiction', readonly=False,
string='В сфере ведения')
rsbu_okato = fields.Char(
related='company_id.rsbu_okato', readonly=False, string='ОКАТО')
rsbu_okopf = fields.Char(
related='company_id.rsbu_okopf', readonly=False, string='ОКОПФ')
rsbu_okfs = fields.Char(
related='company_id.rsbu_okfs', readonly=False, string='ОКФС')