[MIG] base_report_to_printer: Migrate to v11.0

This commit is contained in:
Sylvain GARANCHER
2017-10-03 17:14:08 +02:00
parent e10d4ccf0e
commit 49062b590e
21 changed files with 128 additions and 445 deletions

View File

@@ -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') {