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