Skip to content

Commit

Permalink
[IMP] updates to release om_accounting_report
Browse files Browse the repository at this point in the history
  • Loading branch information
odoomates committed Sep 24, 2022
1 parent 8149762 commit cc149ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion om_account_daily_reports/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
7 changes: 2 additions & 5 deletions om_account_daily_reports/reports/report_daybook.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,15 @@ 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'):
raise UserError(_("Form content is missing, this report cannot be printed."))
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):
Expand Down

0 comments on commit cc149ef

Please sign in to comment.