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.

19 lines
624 B

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