mirror of
https://gitlab.com/flectra-community/account-financial-reporting.git
synced 2024-11-15 10:12:05 +00:00
20 lines
627 B
Python
20 lines
627 B
Python
|
# Copyright 2018 ForgeFlow, S.L. (http://www.forgeflow.com)
|
||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||
|
|
||
|
from flectra import models
|
||
|
|
||
|
|
||
|
class OutstandingStatementWizard(models.TransientModel):
|
||
|
"""Outstanding Statement wizard."""
|
||
|
|
||
|
_name = "outstanding.statement.wizard"
|
||
|
_inherit = "statement.common.wizard"
|
||
|
_description = "Outstanding Statement Wizard"
|
||
|
|
||
|
def _export(self):
|
||
|
"""Export to PDF."""
|
||
|
data = self._prepare_statement()
|
||
|
return self.env.ref(
|
||
|
"partner_statement.action_print_outstanding_statement"
|
||
|
).report_action(self.ids, data=data)
|