19 lines
585 B
Python
19 lines
585 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import controllers
|
|
from . import models
|
|
from . import populate
|
|
from . import report
|
|
from . import wizard
|
|
|
|
from odoo import api, SUPERUSER_ID
|
|
|
|
def _hr_holiday_post_init(env):
|
|
french_companies = env['res.company'].search_count([('partner_id.country_id.code', '=', 'FR')])
|
|
if french_companies:
|
|
env['ir.module.module'].search([
|
|
('name', '=', 'l10n_fr_hr_work_entry_holidays'),
|
|
('state', '=', 'uninstalled')
|
|
]).sudo().button_install()
|