summaryrefslogtreecommitdiff
path: root/dynamic_accounts_report/report/daybook.py
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic_accounts_report/report/daybook.py')
-rw-r--r--dynamic_accounts_report/report/daybook.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/dynamic_accounts_report/report/daybook.py b/dynamic_accounts_report/report/daybook.py
new file mode 100644
index 0000000..4af37ce
--- /dev/null
+++ b/dynamic_accounts_report/report/daybook.py
@@ -0,0 +1,17 @@
+from odoo import api, models, _
+
+
+class DayBook(models.AbstractModel):
+ _name = 'report.dynamic_accounts_report.day_book'
+
+ @api.model
+ def _get_report_values(self, docids, data=None):
+
+ if self.env.context.get('daybook_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 \ No newline at end of file