credito_cliente.py 645 B

12345678910111213141516
  1. from openerp import api, models
  2. import datetime
  3. class report_credito_cliente(models.AbstractModel):
  4. _name = 'report.solicitud_credito_athletic.report_credito_cliente'
  5. @api.multi
  6. def render_html(self, data=None):
  7. report_obj = self.env['report']
  8. report = report_obj._get_report_from_name('solicitud_credito_athletic.report_credito_cliente')
  9. docargs = {
  10. 'doc_ids': self._ids,
  11. 'doc_model': report.model,
  12. 'docs': self.env[report.model].browse(self._ids),
  13. }
  14. return report_obj.render('solicitud_credito_athletic.report_credito_cliente', docargs)