Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2908 มุมมอง

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)
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 25
1705
1
พ.ค. 25
1697
QWeb: use t-if to check birthday date แก้ไขแล้ว
1
เม.ย. 25
2276
1
ก.พ. 25
1563
0
ธ.ค. 24
1324