Browse Source
[IMP] Fill open invoice report with informations keep from account move lines
pull/367/head
[IMP] Fill open invoice report with informations keep from account move lines
pull/367/head
Francesco Apruzzese
9 years ago
committed by
Jordi Ballester
4 changed files with 127 additions and 64 deletions
-
1account_financial_report_qweb/report/__init__.py
-
19account_financial_report_qweb/report/open_invoice.py
-
41account_financial_report_qweb/report/templates/open_invoice_report.xml
-
62account_financial_report_qweb/wizard/open_invoice_wizard.py
@ -0,0 +1,19 @@ |
|||
from openerp import models, api |
|||
|
|||
class OpenInvoiceReport(models.AbstractModel): |
|||
|
|||
_name = 'report.account_financial_report_qweb.open_invoice_report_qweb' |
|||
|
|||
@api.multi |
|||
def render_html(self, data=None): |
|||
report_obj = self.env['report'] |
|||
doc_ids = self._ids |
|||
docargs = { |
|||
'doc_model': 'account.move.line', |
|||
'doc_ids': doc_ids, |
|||
} |
|||
if data: |
|||
docargs.update(data) |
|||
return report_obj.render( |
|||
'account_financial_report_qweb.open_invoice_report_qweb', |
|||
docargs) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue