Files
gzth/yuthon_salary/models/yuthon_payroll_retired.py
2025-04-03 11:39:43 +08:00

25 lines
796 B
Python

from odoo import api, fields, models
class YuthonPayrollRetired(models.Model):
_name = 'yuthon.payroll.retired'
_description = '退休人员费用'
name = fields.Char(string='姓名')
current_year = fields.Integer(string='年份')
current_month = fields.Selection([
('1', '1月份'),
('2', '2月份'),
('3', '3月份'),
('4', '4月份'),
('5', '5月份'),
('6', '6月份'),
('7', '7月份'),
('8', '8月份'),
('9', '9月份'),
('10', '10月份'),
('11', '11月份'),
('12', '12月份')
], string="月份")
retired_amount = fields.Float(string='金额')
company_id = fields.Many2one('res.company', string='公司', index=True, default=lambda self: self.env.company)