Files
gzth/yuthon_hr_employee/models/yuthon_party_setting.py
T
2026-02-22 17:59:29 +08:00

30 lines
1.2 KiB
Python

# -*- coding: utf-8 -*-
from odoo import api, fields, models, _
from odoo.exceptions import UserError, ValidationError
class YuthonPartySetting(models.Model):
_name = 'yuthon.party.setting'
_description = '甲方配置'
_rec_name = 'party'
party = fields.Char(string='甲方', help='用人单位')
referred = fields.Char(string='简称')
open_account = fields.Char(string='开户行')
representatives = fields.Char(string='法定代表人或委托代理人')
economy_type = fields.Char(string='经济类型')
address = fields.Text(string='通讯地址')
contact = fields.Char(string='联系人')
phone = fields.Char(string='电话')
level = fields.Selection([('one', '一级'), ('two', '二级'), ('three', '三级')], string='层级')
effective_date = fields.Date(string="生效日期", default=fields.Date.today)
expiration_date = fields.Date(string="失效日期")
class YuthonSalaryGroup(models.Model):
_name = 'yuthon.salary.group'
_description = '工资单分组'
sequence = fields.Char(string='序号', store=True)
name = fields.Char(string='名称', required=True)
company_id = fields.Many2one('res.company', string='公司', index=True, default=lambda self: self.env.company)