I has been following the different posts in the forum to write a report, passing the variables. Like the comment of Niyas here
https://www.odoo.com/es_ES/forum/ayuda-1/question/how-to-define-and-use-a-report-parser-in-odoo-10-124153
And i did the exact same code, the only variable that i can read into the report is docs, if i add another variable like data, i did not see it, even if is a string, just docs, doc_ids, doc_model.
@api.model
def render_html(self, docids, data=None):
docs = self.env['account.move'].browse(docids)
docargs = {
'doc_ids': self.ids,
'doc_model':'account.move',
'docs': docs,
'data': 'data'
}
return self.env['report'].render('module.report', docargs)
and the <p t-esc="data"/>
there is no error, just there is no variable in the debugger, locals(),
Any ideas?