mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[MIG][15.0] port-forward pr522,527 to 15.0
This commit is contained in:
@@ -18,11 +18,17 @@
|
||||
"wizard/account_statement_import_view.xml",
|
||||
"views/account_journal.xml",
|
||||
"views/account_bank_statement_line.xml",
|
||||
"templates/assets.xml",
|
||||
],
|
||||
"demo": [
|
||||
"demo/partner_bank.xml",
|
||||
],
|
||||
"installable": True,
|
||||
"qweb": ["static/src/xml/account_dashboard_kanban.xml"],
|
||||
"assets": {
|
||||
"web.assets_backend": [
|
||||
"account_statement_import/static/src/js/account_dashboard_kanban.js",
|
||||
],
|
||||
"web.assets_qweb": [
|
||||
"account_statement_import/static/src/xml/account_dashboard_kanban.xml"
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
odoo.define("account_statement_import.dashboard.kanban", function (require) {
|
||||
"use strict";
|
||||
|
||||
var viewRegistry = require("web.view_registry");
|
||||
var KanbanView = require("web.KanbanView");
|
||||
|
||||
var AccountDashboardView = viewRegistry.get("account_dashboard_kanban");
|
||||
// Value can be undefined on some test scenarios. Avoid an error by checking if it is defined
|
||||
@@ -17,6 +19,11 @@ odoo.define("account_statement_import.dashboard.kanban", function (require) {
|
||||
});
|
||||
},
|
||||
});
|
||||
AccountDashboardView = KanbanView.extend({
|
||||
config: _.extend({}, KanbanView.prototype.config, {
|
||||
Controller: AccountDashboardController,
|
||||
}),
|
||||
});
|
||||
return {
|
||||
AccountDashboardView: AccountDashboardView,
|
||||
AccountDashboardController: AccountDashboardController,
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<template id="assets_backend" name="account assets" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/account_statement_import/static/src/js/account_dashboard_kanban.js"
|
||||
/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user