mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[MIG] base_report_to_printer: Migrate to v11.0
This commit is contained in:
@@ -7,7 +7,7 @@ odoo.define('base_report_to_printer.print', function(require) {
|
||||
var Model = require('web.Model');
|
||||
|
||||
ActionManager.include({
|
||||
ir_actions_report_xml: function(action, options) {
|
||||
ir_actions_report: function(action, options) {
|
||||
action = _.clone(action);
|
||||
var _t = core._t;
|
||||
var self = this;
|
||||
@@ -15,7 +15,7 @@ odoo.define('base_report_to_printer.print', function(require) {
|
||||
|
||||
if ('report_type' in action && action.report_type === 'qweb-pdf') {
|
||||
framework.blockUI();
|
||||
new Model('ir.actions.report.xml')
|
||||
new Model('ir.actions.report')
|
||||
.call('print_action_for_report_name', [action.report_name])
|
||||
.then(function(print_action){
|
||||
if (print_action && print_action.action === 'server') {
|
||||
|
||||
Reference in New Issue
Block a user