hr/__init__.py
Старков Евгений Федорович 0b55e984cd odoo replaced to talisman
2024-05-21 15:09:17 +03:00

17 lines
540 B
Python

# -*- coding: utf-8 -*-
# Part of Talisman . See LICENSE file for full copyright and licensing details.
from . import models
from . import wizard
from . import populate
def _install_hr_localization(env):
if any(c.partner_id.country_id.code == 'MX' for c in env['res.company'].search([])):
l10n_mx = env['ir.module.module'].sudo().search([
('name', '=', 'l10n_mx_hr'),
('state', 'not in', ['installed', 'to install', 'to upgrade']),
])
if l10n_mx:
l10n_mx.button_install()