Impacted versions:
- 8.0

Steps to reproduce:
1. open Accounting / Configuration / Taxes / Tax Codes
2. open any Tax Code
3. press Print / Account Tax

Current behavior:

QWebException: "chart_tax_id" while evaluating
"get_lines(data['form']['based_on'], data['form']['company_id'], data['form']['chart_tax_id'])"
Details: http://paste.ubuntu.com/12689915/

Expected behavior:
- Tax Code report

Test on:
- different 8.0 instances
- runbot: http://105817-8-0-6b6d73.runbot8.odoo.com/web

super(tax_report, self).__init__(cr, uid, name, context=context)
        self.localcontext.update({
            'time': time,
            'get_codes': self._get_codes,
            'get_general': self._get_general,
            'get_currency': self._get_currency,
            'get_lines': partial(self._get_lines, context=context),
            'get_fiscalyear': self._get_fiscalyear,
            'get_account': self._get_account,
            'get_start_period': self.get_start_period,
            'get_end_period': self.get_end_period,
            'get_basedon': self._get_basedon,
        })
    def _get_basedon(self, form):
        return form['form']['based_on']
    def _get_lines(self, based_on, company_id=False, parent=False, level=0, context=None):
        period_list = self.period_ids
        fiscalyear_id = self.fiscalyear_id
        res = self._get_codes(based_on, company_id, parent, level, period_list, context=context)
        if period_list:
            res = self._add_codes(based_on, res, period_list, context=context)
        else:
            if not fiscalyear_id:
                self.cr.execute("select id from account_fiscalyear where company_id = %s", (company_id,))
                result = self.cr.fetchall()
                fy = [x[0] for x in result]
            else: