如何修复“ KeyError:'date_to'”

时间:2019-05-23 06:25:22

标签: odoo-12

如何修复“我打开会计报表总帐”时的问题

Odoo Server Error
Traceback (most recent call last):[enter image description here][1]
  File "/usr/lib/python3.7/site-packages/odoo/api.py", line 736, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/odoo/enterprise/account_reports/models/account_report.py", line 473, in get_report_informations
    'main_html': self.get_html(options),
  File "/usr/lib/python3.6/site-packages/odoo/enterprise/account_reports/models/account_report.py", line 667, in get_html
    lines = self._get_lines(options, line_id=line_id)
 File "/usr/lib/python3.6/site-packages/odoo/enterprise/account_reports/models/account_general_ledger.py", line 453, in _get_lines
    base_amount = journal_currency._convert(values['base_amount'], used_currency, company_id, options['date_to'])
KeyError: 'date_to'

0 个答案:

没有答案