# -*- coding: utf-8 -*-
from odoo import api, models


class PlannerAccount(models.Model):
    _inherit = 'web.planner'

    def _prepare_planner_account_data(self):
        values = {
            'company_id': self.env.user.company_id,
            'is_coa_installed':
            bool(self.env['account.account'].search_count([])),
            'payment_term': self.env['account.payment.term'].search([]),
            'supplier_menu_id':
            self.env.ref('ascendia_sales_purchase.menu_account_relations').id
        }
        return values
