mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
14 lines
604 B
Python
14 lines
604 B
Python
# Part of Hibou Suite Professional. See LICENSE_PROFESSIONAL file for full copyright and licensing details.
|
|
|
|
from odoo import api, SUPERUSER_ID
|
|
from . import models
|
|
|
|
def _post_install_hook_configure_journals(cr, registry):
|
|
"""
|
|
This method will create a salary journal for each company and allocate it to each Peru structure.
|
|
"""
|
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
|
companies = env['res.company'].search([('partner_id.country_id', '=', env.ref('base.pe').id)])
|
|
for company in companies:
|
|
env['account.chart.template']._pe_configure_payroll_account_data(company)
|