[MIG][15.0] port-forward pr522,527 to 15.0

This commit is contained in:
sonhd91
2022-12-13 16:47:57 +07:00
parent 02ecf8aa07
commit 68a1bc65bb
3 changed files with 15 additions and 13 deletions

View File

@@ -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"
],
},
}

View File

@@ -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,

View File

@@ -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>