mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[IMP] account_statment_import: Add button for importing on top
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
odoo.define("account_statement_import.dashboard.kanban", function (require) {
|
||||
"use strict";
|
||||
var viewRegistry = require("web.view_registry");
|
||||
|
||||
var AccountDashboardView = viewRegistry.get("account_dashboard_kanban");
|
||||
var AccountDashboardController = AccountDashboardView.prototype.config.Controller;
|
||||
AccountDashboardController.include({
|
||||
buttons_template: "AccountDashboardView.buttons",
|
||||
// We are reusing the create button
|
||||
_onButtonNew: function (ev) {
|
||||
ev.stopPropagation();
|
||||
return this.trigger_up("do_action", {
|
||||
action: "account_statement_import.account_statement_import_action",
|
||||
});
|
||||
},
|
||||
});
|
||||
return {
|
||||
AccountDashboardView: AccountDashboardView,
|
||||
AccountDashboardController: AccountDashboardController,
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user