diff --git a/soong_workflow/wizard/soong_workflow_comment_wizard.py b/soong_workflow/wizard/soong_workflow_comment_wizard.py index 2e4ea154b..a6dd004b7 100644 --- a/soong_workflow/wizard/soong_workflow_comment_wizard.py +++ b/soong_workflow/wizard/soong_workflow_comment_wizard.py @@ -553,7 +553,7 @@ class SoongWorkflowCommentWizard(models.TransientModel): is_work_remind = False current_user = self.env.user current_datetime = fields.Datetime.now() - is_admin = current_user.has_group('soong_workflow.group_soong_workflow_manager') + is_admin = current_user.has_group('base.group_system') if is_admin: record_id.log_ids[-1].sudo().write({ 'comment': self.comment, diff --git a/yuthon_hr_attendance/static/src/js/button_vacation_confirm.js b/yuthon_hr_attendance/static/src/js/button_vacation_confirm.js index 42d44f38c..00223dbe0 100644 --- a/yuthon_hr_attendance/static/src/js/button_vacation_confirm.js +++ b/yuthon_hr_attendance/static/src/js/button_vacation_confirm.js @@ -7,12 +7,14 @@ export class CustomAttendanceVacationConfirmController extends ListController { setup() { super.setup(); } - async openConfirm() { - await this.model.orm.call( - 'vacation.over.line', - 'confirm', - [] - ); + + async getAction(lock_type) { + const action = await this.orm.call('vacation.over.line', 'confirm', [lock_type], {context: this.props.context}); + action["context"] = { + ...action.context, + ...this.model.root.context, + } + return action } } diff --git a/yuthon_hr_attendance/static/src/xml/button_vacation_confirm.xml b/yuthon_hr_attendance/static/src/xml/button_vacation_confirm.xml index dfe90d6ce..a62709af5 100644 --- a/yuthon_hr_attendance/static/src/xml/button_vacation_confirm.xml +++ b/yuthon_hr_attendance/static/src/xml/button_vacation_confirm.xml @@ -2,7 +2,7 @@ -