'Set the tax_cash_basis_journal_id on the company'

@api.model
def generate_journals(self, acc_template_ref, company, journals_dict=None):

    res = super(AccountChartTemplate, self).generate_journals(acc_template_ref, company, journals_dict=journals_dict)
    if (not (self == self.env.ref('l10n_mx.mx_coa'))):
        return res
    journal_basis = self.env['account.journal'].search([('type', '=', 'general'), ('code', '=', 'CBMX')], limit=1)
    company.write({'tax_cash_basis_journal_id': journal_basis.id})
    return res
