1
This commit is contained in:
@@ -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='新建')
|
||||
|
||||
|
||||
@@ -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='工资条')
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user