Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2893 Prikazi

Hi, what should i modify in this function to adapte to my report ??

sorry for my english


# -*- coding: utf-8 -*-
from openerp import api, models

class ParticularReport(models.AbstractModel):
    _name = 'report.manage_candidates.report_jury'

    @api.multi
    def render_html(self, data=None):
        report_obj = self.env['report']
report = report_obj._get_report_from_name('manage_candidates.report_jury')       
docargs = {           
     'doc_ids': self._ids,
     'doc_model': report.model, (what should i write here ?)
     'docs': self,       
}
return report_obj.render('manage_candidates.report_jury', docargs)
Avatar
Opusti
Best Answer

Here you could read about that

https://www.odoo.com/es_ES/forum/ayuda-1/question/how-to-get-value-from-data-variable-in-the-report-paser-class-97860#answer-97863

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jul. 25
1688
1
maj 25
1675
1
apr. 25
2265
1
feb. 25
1550
0
dec. 24
1321