12345678910111213141516 |
- from openerp import api, models
- import datetime
- class report_credito_cliente(models.AbstractModel):
- _name = 'report.solicitud_credito_athletic.report_credito_cliente'
- @api.multi
- def render_html(self, data=None):
- report_obj = self.env['report']
- report = report_obj._get_report_from_name('solicitud_credito_athletic.report_credito_cliente')
- docargs = {
- 'doc_ids': self._ids,
- 'doc_model': report.model,
- 'docs': self.env[report.model].browse(self._ids),
- }
- return report_obj.render('solicitud_credito_athletic.report_credito_cliente', docargs)
|