29 lines
890 B
JavaScript
29 lines
890 B
JavaScript
/** @odoo-module */
|
|
import { ListController } from "@web/views/list/list_controller";
|
|
import { registry } from '@web/core/registry';
|
|
import { listView } from '@web/views/list/list_view';
|
|
|
|
export class CustomStatementsListController extends ListController {
|
|
setup() {
|
|
super.setup();
|
|
}
|
|
|
|
openAllStatementsWizard() {
|
|
this.actionService.doAction({
|
|
type: 'ir.actions.act_window',
|
|
res_model: 'click.reconciliation.wizard',
|
|
name: '一键对账',
|
|
view_mode: 'form',
|
|
view_type: 'form',
|
|
views: [[false, 'form']],
|
|
target: 'new', // 以弹窗形式打开
|
|
context: {},
|
|
});
|
|
}
|
|
}
|
|
|
|
registry.category("views").add("custom_statements_list_button", {
|
|
...listView,
|
|
Controller: CustomStatementsListController,
|
|
buttonTemplate: "statements_module.ListView.Buttons",
|
|
}); |