From 5add9197f0676713275e99f702b3d913f3b13fa7 Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Tue, 2 Dec 2025 21:44:08 +0800 Subject: [PATCH] 1 --- room/models/inherit_calendar_event.py | 2 +- yuthon_salary/wizard/payslip_send_wizard.py | 2 +- yuthon_salary/wizard/put_return_wizard.py | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/room/models/inherit_calendar_event.py b/room/models/inherit_calendar_event.py index aa1f36769..381713e68 100644 --- a/room/models/inherit_calendar_event.py +++ b/room/models/inherit_calendar_event.py @@ -7,7 +7,7 @@ from odoo.exceptions import UserError, ValidationError class CalendarEvent(models.Model): _inherit = "calendar.event" - sth_type = fields.Selection([('sth', '日程'), ('meet', '会议')], default="sth", string="活动类型", readonly=1) + sth_type = fields.Selection([('sth', '日程'), ('meet', '会议')], default="sth", string="活动类型") room_booking_id = fields.Many2one('room.booking', string="会议") name = fields.Char(string="日程名称", default='新建') diff --git a/yuthon_salary/wizard/payslip_send_wizard.py b/yuthon_salary/wizard/payslip_send_wizard.py index b2c6ff1ac..2e6fc8cde 100644 --- a/yuthon_salary/wizard/payslip_send_wizard.py +++ b/yuthon_salary/wizard/payslip_send_wizard.py @@ -8,7 +8,7 @@ class PayslipSendWizard(models.Model): _description = '发送员工工资条二次确认弹窗' employee_id = fields.Many2one('hr.employee', string='员工') - name = fields.Char(string='你确定要发送吗?', readonly=1) + name = fields.Char(string='你确定要发送吗?') employee_ids = fields.Many2many('hr.employee', string='员工') payslip_run_id = fields.Many2one('hr.payslip.run', string='工资单') payslip_ids = fields.Many2many('hr.payslip', string='工资条') diff --git a/yuthon_salary/wizard/put_return_wizard.py b/yuthon_salary/wizard/put_return_wizard.py index b61ef4489..269c4f101 100644 --- a/yuthon_salary/wizard/put_return_wizard.py +++ b/yuthon_salary/wizard/put_return_wizard.py @@ -7,7 +7,7 @@ class PutWizard(models.TransientModel): _name = 'put.wizard' _description = '推送二次确认弹窗' - name = fields.Char(string='你确定要推送吗?', readonly=1) + name = fields.Char(string='你确定要推送吗?') def put_confirm(self): payslip_records = self.env['hr.payslip'].browse(self.env.context.get('active_ids')) @@ -32,7 +32,7 @@ class ReturnWizard(models.TransientModel): _name = 'return.wizard' _description = '退回确认弹窗' - name = fields.Char(string='你确定要退回吗?', readonly=1) + name = fields.Char(string='你确定要退回吗?') def return_confirm(self): payslip_records = self.env["hr.payslip"].browse( @@ -55,7 +55,7 @@ class PutSalaryWizard(models.TransientModel): _name = 'put.salary.wizard' _description = '推送确认弹窗' - name = fields.Char(string='你确定要推送吗?', readonly=1) + name = fields.Char(string='你确定要推送吗?') def put_confirm(self): payslip_records = self.env["hr.payslip"].browse( @@ -77,7 +77,7 @@ class ReturnSalaryWizard(models.TransientModel): _name = 'return.salary.wizard' _description = '退回确认弹窗' - name = fields.Char(string='你确定要退回吗?', readonly=1) + name = fields.Char(string='你确定要退回吗?') def return_confirm(self): payslip_records = self.env["hr.payslip"].browse(