summaryrefslogtreecommitdiff
path: root/dynamic_accounts_report/report/partner_ledger.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
commit1ca3b3df3421961caec3b747a364071c80f5c7da (patch)
tree6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /dynamic_accounts_report/report/partner_ledger.py
parentb57188be371d36d96caac4b8d65a40745c0e972c (diff)
initial commit
Diffstat (limited to 'dynamic_accounts_report/report/partner_ledger.py')
-rw-r--r--dynamic_accounts_report/report/partner_ledger.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/dynamic_accounts_report/report/partner_ledger.py b/dynamic_accounts_report/report/partner_ledger.py
new file mode 100644
index 0000000..fe97bca
--- /dev/null
+++ b/dynamic_accounts_report/report/partner_ledger.py
@@ -0,0 +1,16 @@
+from odoo import api, models, _
+
+
+class PartnerLedgerReport(models.AbstractModel):
+ _name = 'report.dynamic_accounts_report.partner_ledger'
+
+ @api.model
+ def _get_report_values(self, docids, data=None):
+ if self.env.context.get('partner_ledger_pdf_report'):
+
+ if data.get('report_data'):
+ data.update({'account_data': data.get('report_data')['report_lines'],
+ 'Filters': data.get('report_data')['filters'],
+ 'company': self.env.company,
+ })
+ return data