Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4482 Visualizzazioni

Good day,


We use Odoo Enterprise Online and we would like to make the font size on the Traceability Report PDF smaller. Unfortunately, we can't find the View or Report to edit.


Does anyone know where to find this report? I found the traceability report page itself, but not the PDF version.


Kind regards.


Odoo 13.0

Avatar
Abbandona
Risposta migliore

Hi Marc de Cocq there is no PDF version of tracebility report.

In case you are preparing custom module, If you want to update your Tracebility report Print (PDF) you will have to update it from js,


odoo.define('Your_module name.update_pdf_report', function (require) {

"use strict";

var AbstractAction = require('web.AbstractAction');

var core = require('web.core');

var session = require('web.session');

var framework = require('web.framework');

var stock_report_generic = require('stock.stock_report_generic');

var QWeb = core.qweb;

var rpc = require('web.rpc')

var Dialog = require('web.Dialog');

var _t = core._t;

var deferred = $.Deferred();


stock_report_generic.include({

renderButtons: function() {

var self = this;

this.$buttons = $(QWeb.render("stockReports.buttons", {}));

// pdf output

this.$buttons.filter('.o_stock-widget-pdf').on('click', function(e) {

var $element = $(self.$el[0]).find('.o_stock_reports_table tbody tr')

}

}

})

});


Here in tr or whole table you have to update your custom css for PDF report ,

Like this

$(self.$el[0]).find('.o_stock_reports_table tbody tr').css('font-size':20px)

Thank You!

Regards,




Email:      odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

   

Avatar
Abbandona
Autore

Thank you for your answer. But there is a PDF in the Enterprise online version to download.

Post correlati Risposte Visualizzazioni Attività
0
set 18
2192
0
dic 17
2601
2
giu 17
4332
1
mar 15
3958
1
mar 15
4333