You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
658 B

  1. # Copyright 2018 Eficent Business and IT Consulting Services S.L.
  2. # (http://www.eficent.com)
  3. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
  4. from odoo import models
  5. class OutstandingStatementWizard(models.TransientModel):
  6. """Outstanding Statement wizard."""
  7. _name = "outstanding.statement.wizard"
  8. _inherit = "statement.common.wizard"
  9. _description = "Outstanding Statement Wizard"
  10. def _export(self):
  11. """Export to PDF."""
  12. data = self._prepare_statement()
  13. return self.env.ref(
  14. "partner_statement" ".action_print_outstanding_statement"
  15. ).report_action(self, data=data)