diff --git a/yuthon_salary/static/src/js/salary_create_button.js b/yuthon_salary/static/src/js/salary_create_button.js index c69cca3bb..d67f8ee1d 100644 --- a/yuthon_salary/static/src/js/salary_create_button.js +++ b/yuthon_salary/static/src/js/salary_create_button.js @@ -32,6 +32,18 @@ export class CustomSalaryStatementsController extends ListController { context: {}, }); } + openPayrollWizard(){ + this.actionService.doAction({ + type: 'ir.actions.act_window', + res_model: 'temporary.payslip.wizard', + name: '工资项导入', + view_mode: 'form', + view_type: 'form', + views: [[false, 'form']], + target: 'new', // 以弹窗形式打开 + context: {}, + }); + } } registry.category("views").add("custom_salary_button", { diff --git a/yuthon_salary/static/src/xml/salary_create_button.xml b/yuthon_salary/static/src/xml/salary_create_button.xml index 6e67904ec..b6ef3c069 100644 --- a/yuthon_salary/static/src/xml/salary_create_button.xml +++ b/yuthon_salary/static/src/xml/salary_create_button.xml @@ -11,5 +11,10 @@ 社保导入 + + + diff --git a/yuthon_salary/views/inherit_hr_payslip_views.xml b/yuthon_salary/views/inherit_hr_payslip_views.xml index f1aea3e61..34f8def74 100644 --- a/yuthon_salary/views/inherit_hr_payslip_views.xml +++ b/yuthon_salary/views/inherit_hr_payslip_views.xml @@ -428,7 +428,6 @@