[MIG] account_financial_report: Migration to 15.0
This commit is contained in:
@@ -367,7 +367,7 @@ ul.auto-toc {
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-reporting/tree/14.0/account_financial_report"><img alt="OCA/account-financial-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-reporting-14-0/account-financial-reporting-14-0-account_financial_report"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/91/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-reporting/tree/15.0/account_financial_report"><img alt="OCA/account-financial-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-reporting-15-0/account-financial-reporting-15-0-account_financial_report"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/91/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module adds a set of financial reports. They are accessible under
|
||||
Invoicing / Reporting / OCA accounting reports.</p>
|
||||
<ul class="simple">
|
||||
@@ -444,7 +444,7 @@ in ???Target Moves??? field in a wizard</li>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20account_financial_report%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20account_financial_report%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
@@ -504,7 +504,7 @@ April 2016.</p>
|
||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-reporting/tree/14.0/account_financial_report">OCA/account-financial-reporting</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-reporting/tree/15.0/account_financial_report">OCA/account-financial-reporting</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,35 +1,37 @@
|
||||
odoo.define("account_financial_report.ReportActionManager", function (require) {
|
||||
"use strict";
|
||||
|
||||
const ActionManager = require("web.ActionManager");
|
||||
require("web.ReportActionManager");
|
||||
|
||||
ActionManager.include({
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
_executeReportClientAction: function (action, options) {
|
||||
const MODULE_NAME = "account_financial_report";
|
||||
|
||||
// When 'report_action' is called from the backend, Odoo hardcodes the action tag.
|
||||
// We have to make a hack to use our own report controller.
|
||||
if (action.report_name.startsWith(`${MODULE_NAME}.`)) {
|
||||
const urls = this._makeReportUrls(action);
|
||||
const clientActionOptions = _.extend({}, options, {
|
||||
context: action.context,
|
||||
data: action.data,
|
||||
display_name: action.display_name,
|
||||
name: action.name,
|
||||
report_file: action.report_file,
|
||||
report_name: action.report_name,
|
||||
report_url: urls.html,
|
||||
});
|
||||
return this.doAction(
|
||||
"account_financial_report.client_action",
|
||||
clientActionOptions
|
||||
);
|
||||
}
|
||||
return this._super.apply(this, arguments);
|
||||
},
|
||||
});
|
||||
});
|
||||
// Method is available here https://github.com/odoo/odoo/blob/15.0/addons/web/static/src/webclient/actions/action_service.js#L981
|
||||
// TO DO: Check for implement this action inherit
|
||||
// odoo.define("account_financial_report.ReportActionManager", function (require) {
|
||||
// "use strict";
|
||||
//
|
||||
// const ActionManager = require("web.ActionManager");
|
||||
// require("web.ReportActionManager");
|
||||
//
|
||||
// ActionManager.include({
|
||||
// /**
|
||||
// * @override
|
||||
// */
|
||||
// _executeReportClientAction: function (action, options) {
|
||||
// const MODULE_NAME = "account_financial_report";
|
||||
//
|
||||
// // When 'report_action' is called from the backend, Odoo hardcodes the action tag.
|
||||
// // We have to make a hack to use our own report controller.
|
||||
// if (action.report_name.startsWith(`${MODULE_NAME}.`)) {
|
||||
// const urls = this._makeReportUrls(action);
|
||||
// const clientActionOptions = _.extend({}, options, {
|
||||
// context: action.context,
|
||||
// data: action.data,
|
||||
// display_name: action.display_name,
|
||||
// name: action.name,
|
||||
// report_file: action.report_file,
|
||||
// report_name: action.report_name,
|
||||
// report_url: urls.html,
|
||||
// });
|
||||
// return this.doAction(
|
||||
// "account_financial_report.client_action",
|
||||
// clientActionOptions
|
||||
// );
|
||||
// }
|
||||
// return this._super.apply(this, arguments);
|
||||
// },
|
||||
// });
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user