@@ -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", {
|
||||
|
||||
@@ -11,5 +11,10 @@
|
||||
社保导入
|
||||
</button>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('o_list_buttons')]" position="after">
|
||||
<button type="button" class="btn btn-primary" style="margin-left: 10px;" t-on-click="openPayrollWizard">
|
||||
工资项导入
|
||||
</button>
|
||||
</xpath>
|
||||
</t>
|
||||
</templates>
|
||||
|
||||
@@ -428,7 +428,6 @@
|
||||
<tree string="薪资计算" default_order="employee_id" js_class="custom_salary_button" class="sticky-enabled-two-columns" editable="bottom" limit="20">
|
||||
<header>
|
||||
<button name="action_put_wizard" string="推送" type="object" class="oe_highlight"/>
|
||||
<button name="action_temporary_payslip_wizard" string="导入工资项" type="object" class="oe_highlight"/>
|
||||
<button name="action_refresh_from_work_entries" string="重新计算" type="object" class="oe_highlight"/>
|
||||
</header>
|
||||
<button name="open_record" string="详情" type="object" class="oe_highlight"/>
|
||||
@@ -502,7 +501,6 @@
|
||||
<tree string="薪资计算" default_order="employee_id" js_class="custom_salary_button" editable="bottom" limit="20">
|
||||
<header>
|
||||
<button name="action_put_wizard" string="推送" type="object" class="oe_highlight"/>
|
||||
<button name="action_temporary_payslip_wizard" string="导入工资项" type="object" class="oe_highlight"/>
|
||||
<button name="action_refresh_from_work_entries" string="重新计算" type="object" class="oe_highlight"/>
|
||||
</header>
|
||||
<button name="open_record" string="详情" type="object" class="oe_highlight"/>
|
||||
@@ -559,7 +557,6 @@
|
||||
<tree string="薪资计算" default_order="employee_id" js_class="custom_salary_button" editable="bottom" limit="20">
|
||||
<header>
|
||||
<button name="action_put_wizard" string="推送" type="object" class="oe_highlight"/>
|
||||
<button name="action_temporary_payslip_wizard" string="导入工资项" type="object" class="oe_highlight"/>
|
||||
<button name="action_refresh_from_work_entries" string="重新计算" type="object" class="oe_highlight"/>
|
||||
</header>
|
||||
<button name="open_record" string="详情" type="object" class="oe_highlight"/>
|
||||
|
||||
Reference in New Issue
Block a user