mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-25 01:32:05 +02:00
Initial commit: Hr packages
This commit is contained in:
commit
62531cd146
2820 changed files with 1432848 additions and 0 deletions
19
odoo-bringout-oca-ocb-hr/hr/__init__.py
Normal file
19
odoo-bringout-oca-ocb-hr/hr/__init__.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, fields, SUPERUSER_ID
|
||||
|
||||
from . import models
|
||||
from . import wizard
|
||||
from . import populate
|
||||
|
||||
|
||||
def _install_hr_localization(cr, registry):
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue