From cc149ef646140e228f219b28f690af45ab0e2fa2 Mon Sep 17 00:00:00 2001 From: odoomates Date: Sat, 24 Sep 2022 18:59:28 +0300 Subject: [PATCH] [IMP] updates to release om_accounting_report --- om_account_daily_reports/__manifest__.py | 2 +- om_account_daily_reports/reports/report_daybook.py | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/om_account_daily_reports/__manifest__.py b/om_account_daily_reports/__manifest__.py index b7ddf994..2d564681 100644 --- a/om_account_daily_reports/__manifest__.py +++ b/om_account_daily_reports/__manifest__.py @@ -3,7 +3,7 @@ { 'name': 'Cash Book, Day Book, Bank Book Financial Reports', - 'version': '14.0.2.0.0', + 'version': '14.0.3.0.0', 'category': 'Invoicing Management', 'summary': 'Cash Book, Day Book and Bank Book Report For Odoo 14', 'description': 'Cash Book, Day Book and Bank Book Report For Odoo 14', diff --git a/om_account_daily_reports/reports/report_daybook.py b/om_account_daily_reports/reports/report_daybook.py index 09ca6713..060bc584 100644 --- a/om_account_daily_reports/reports/report_daybook.py +++ b/om_account_daily_reports/reports/report_daybook.py @@ -73,7 +73,6 @@ def _get_account_move_entry(self, accounts, form_data, date): res['lines'] = data return res - @api.model def _get_report_values(self, docids, data=None): if not data.get('form') or not self.env.context.get('active_model'): @@ -81,10 +80,8 @@ def _get_report_values(self, docids, data=None): model = self.env.context.get('active_model') docs = self.env[model].browse(self.env.context.get('active_ids', [])) form_data = data['form'] - - date_from = datetime.strptime(form_data['date_from'], - '%Y-%m-%d').date() - date_to = datetime.strptime(form_data['date_to'], '%Y-%m-%d').date() + date_from = datetime.strptime(str(form_data['date_from']), '%Y-%m-%d').date() + date_to = datetime.strptime(str(form_data['date_to']), '%Y-%m-%d').date() codes = [] if data['form'].get('journal_ids', False):