Initial Port of customer statements
This commit is contained in:
committed by
Miquel Raïch
parent
1ffec3d4ee
commit
ad482b33d0
21
partner_statement/wizard/outstanding_statement_wizard.py
Normal file
21
partner_statement/wizard/outstanding_statement_wizard.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# Copyright 2018 Eficent Business and IT Consulting Services S.L.
|
||||
# (http://www.eficent.com)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo 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, data=data)
|
||||
Reference in New Issue
Block a user