Impacted versions:
10.0

Steps to reproduce:
Install `l10n_jp` and configure a company to use this chart of account in the menu `Accounting > Settings`

Current behavior:

Error is thrown:
```python
Traceback (most recent call last):
  File "/opt/odoo/src/odoo/http.py", line 638, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/src/odoo/http.py", line 675, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/src/odoo/http.py", line 331, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/src/odoo/service/model.py", line 119, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/src/odoo/http.py", line 324, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/src/odoo/http.py", line 933, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/src/odoo/http.py", line 504, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/src/addons/web/controllers/main.py", line 866, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/odoo/src/addons/web/controllers/main.py", line 854, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/src/odoo/api.py", line 681, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo/src/odoo/api.py", line 672, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/src/odoo/addons/base/res/res_config.py", line 537, in execute
    getattr(self, method)()
  File "/opt/odoo/src/addons/account/models/res_config.py", line 261, in set_chart_of_accounts
    wizard.execute()
  File "/opt/odoo/src/addons/account/models/chart_template.py", line 821, in execute
    acc_template_ref, taxes_ref = self.chart_template_id._install_template(company, code_digits=self.code_digits, transfer_account_id=self.transfer_account_id)
  File "/opt/odoo/src/addons/account/models/chart_template.py", line 280, in _install_template
    tmp1, tmp2 = self._load_template(company, code_digits=code_digits, transfer_account_id=transfer_account_id, account_ref=acc_ref, taxes_ref=taxes_ref)
  File "/opt/odoo/src/addons/account/models/chart_template.py", line 336, in _load_template
    self.generate_fiscal_position(taxes_ref, account_ref, company)
  File "/opt/odoo/src/addons/account/models/chart_template.py", line 455, in generate_fiscal_position
    'position_id': new_fp
  File "/opt/odoo/src/addons/account/models/chart_template.py", line 350, in create_record_with_xmlid
    new_xml_id = str(company.id)+'_'+template_xmlid.name
TypeError: cannot concatenate 'str' and 'bool' objects
```

Expected behavior:

Chart of account is correctly configured for the desired company

Video/Screenshot link (optional):
![selection_012](https://cloud.githubusercontent.com/assets/8102312/22685563/148b11b2-ed21-11e6-97e4-1a88049eddfa.jpg)

_name = 'account.bank.accounts.wizard'
    acc_name = fields.Char(string='Account Name.', required=True)
    bank_account_id = fields.Many2one('wizard.multi.charts.accounts', string='Bank Account', required=True, ondelete='cascade')
    currency_id = fields.Many2one('res.currency', string='Account Currency',
        help="Forces all moves for this account to have this secondary currency.")
    account_type = fields.Selection([('cash', 'Cash'), ('bank', 'Bank')])
class AccountReconcileModelTemplate(models.Model):
    _name = "account.reconcile.model.template"
    name = fields.Char(string='Button Label', required=True)
    sequence = fields.Integer(required=True, default=10)
    has_second_line = fields.Boolean(string='Add a second line', default=False)
    account_id = fields.Many2one('account.account.template', string='Account', ondelete='cascade', domain=[('deprecated', '=', False)])
    label = fields.Char(string='Journal Item Label')
    amount_type = fields.Selection([
        ('fixed', 'Fixed'),
        ('percentage', 'Percentage of balance')
        ], required=True, default='percentage')
    amount = fields.Float(digits=0, required=True, default=100.0, help="Fixed amount will count as a debit if it is negative, as a credit if it is positive.")
    tax_id = fields.Many2one('account.tax.template', string='Tax', ondelete='restrict', domain=[('type_tax_use', '=', 'purchase')])
    second_account_id = fields.Many2one('account.account.template', string='Second Account', ondelete='cascade', domain=[('deprecated', '=', False)])
    second_label = fields.Char(string='Second Journal Item Label')
    second_amount_type = fields.Selection([
        ('fixed', 'Fixed'),
        ('percentage', 'Percentage of amount')
        ], string="Second Amount type",required=True, default='percentage')
    second_amount = fields.Float(string='Second Amount', digits=0, required=True, default=100.0, help="Fixed amount will count as a debit if it is negative, as a credit if it is positive.")
    second_tax_id = fields.Many2one('account.tax.template', string='Second Tax', ondelete='restrict', domain=[('type_tax_use', '=', 'purchase')])