Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] l10n_mx_hr_payroll #51

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions l10n_mx_hr_payroll/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# HR Payroll module with requirements for Mexico

- Type of Periods
- Tables for payroll
3 changes: 3 additions & 0 deletions l10n_mx_hr_payroll/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import reports
from . import models
from . import wizards
104 changes: 104 additions & 0 deletions l10n_mx_hr_payroll/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"name": "HR Payroll Mexico",
"icon": "/l10n_mx/static/description/icon.png",
"summary": """HR payroll requirements for Mexico """,
"author": "e-maanu, "
"Open Source Integrators, "
"Asociacion Mexicana de Odoo (AMOdoo), "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-mexico",
"category": "Human Resources/Payroll",
"version": "17.0.1.0.0",
"depends": [
"base",
"l10n_mx",
"contacts",
"account_reports",
"hr_payroll",
"hr_holidays",
"hr_attendance",
"hr_recruitment",
],
"external_dependencies": {
"python": ["zeep"],
},
"data": [
"data/ir_cron.xml",
"data/hr_contract_restdays_data.xml",
"data/payroll.allowance.csv",
"data/payroll.deduction.csv",
"data/payroll.otherpayment.csv",
"security/ir.model.access.csv",
"wizards/hr_payroll_movement_by_employees_views.xml",
"wizards/hr_payroll_general_salary_increase_views.xml",
"wizards/hr_payroll_dispersion_view.xml",
"views/period_view.xml",
"views/res_company_view.xml",
"views/hr_res_bank_views.xml",
"views/hr_payroll_isr_view.xml",
"views/hr_payroll_es_view.xml",
"views/hr_payroll_pc_view.xml",
"views/hr_payroll_ms_view.xml",
"views/hr_payroll_imss_view.xml",
"views/hr_payroll_uma_view.xml",
"views/hr_payroll_umi_view.xml",
"views/hr_holidays_views.xml",
"views/hr_payroll_employer_register_view.xml",
"views/hr_payroll_contract_view.xml",
"views/hr_payroll_structure_views.xml",
"views/hr_employee_view.xml",
"views/res_partner_view.xml",
"views/hr_payslip_run_views.xml",
"views/hr_payslip_views.xml",
"views/hr_salary_rules_views.xml",
"views/hr_payroll_movement_views.xml",
"views/hr_payroll_loan_views.xml",
"views/hr_payroll_alimony_views.xml",
"views/hr_ptu_process_views.xml",
"views/hr_bonus_process_views.xml",
"views/hr_payroll_settlements_views.xml",
"views/hr_payroll_saving_fund_views.xml",
"views/hr_payroll_salary_increases_views.xml",
"views/hr_contract_salary_history_views.xml",
"views/hr_payroll_extratime_views.xml",
"views/hr_payroll_sua_process_views.xml",
"views/hr_payroll_idse_process_views.xml",
"views/hr_leave_type_views.xml",
"views/report_payslip_templates.xml",
"reports/hr_payslip.xml",
"reports/hr_payroll_templates.xml",
"reports/hr_payslip_line.xml",
"views/hr_payroll_menu.xml",
"data/sequence.xml",
"views/res_config_settings_view.xml",
"data/data_isr_0521.xml",
"data/data_es_0521.xml",
"data/data_pc_0521.xml",
"data/data_minimum_salary.xml",
"data/data_uma_mx.xml",
"data/data_umi_mx.xml",
"data/hr_payroll_data.xml",
"data/hr_payroll_account_data.xml",
"data/resource_calendar.xml",
"data/hr_payroll_structures_data.xml",
"data/hr_payroll_categories_rules_data.xml",
"data/hr_payroll_input_data.xml",
"data/hr_salary_rule_weekly.xml",
"data/hr_salary_rule_biweekly.xml",
"data/hr_salary_rule_monthly.xml",
"data/hr_payroll_ptu_data.xml",
"data/hr_payroll_bonus_data.xml",
"data/hr_payroll_period_type.xml",
"data/hr.payroll.structure.type.csv",
"data/hr.payroll.structure.csv",
"data/hr.salary.rule.csv",
],
"demo": [
"demo/hr_payroll_demo_periods.xml",
"demo/res_partner_demo.xml",
"demo/hr_payroll_demo.xml",
"demo/hr_contract_demo.xml",
],
"application": True,
"license": "LGPL-3",
}
96 changes: 96 additions & 0 deletions l10n_mx_hr_payroll/data/data_es_0521.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<odoo>
<!-- Employment Subsidy Table - Weekly -->
<record id="table_of_es_weekly_0524" model="hr.payroll.es">
<field name="code">ES 2024 - weekly</field>
<field name="name">Tabla de Employment Subsidy 2024 - Weekly</field>
<field name="type_table">w</field>
</record>

<record id="hr_payroll_es_anual_0521_line001" model="hr.payroll.es.line">
<field name="name">1</field>
<field name="inf_sup">0.01</field>
<field name="lim_sup">407.33</field>
<field name="fix_fee">93.73</field>
<field name="line_id" ref="table_of_es_weekly_0524" />
</record>

<record id="hr_payroll_es_anual_0521_line002" model="hr.payroll.es.line">
<field name="name">2</field>
<field name="inf_sup">407.34</field>
<field name="lim_sup">610.96</field>
<field name="fix_fee">93.66</field>
<field name="line_id" ref="table_of_es_weekly_0524" />
</record>

<record id="hr_payroll_es_anual_0521_line003" model="hr.payroll.es.line">
<field name="name">3</field>
<field name="inf_sup">610.97</field>
<field name="lim_sup">799.68</field>
<field name="fix_fee">93.66</field>
<field name="line_id" ref="table_of_es_weekly_0524" />
</record>

<record id="hr_payroll_es_anual_0521_line004" model="hr.payroll.es.line">
<field name="name">4</field>
<field name="inf_sup">799.69</field>
<field name="lim_sup">814.66</field>
<field name="fix_fee">90.44</field>
<field name="line_id" ref="table_of_es_weekly_0524" />
</record>

<record id="hr_payroll_es_anual_0521_line005" model="hr.payroll.es.line">
<field name="name">5</field>
<field name="inf_sup">814.67</field>
<field name="lim_sup">1023.75</field>
<field name="fix_fee">88.06</field>
<field name="line_id" ref="table_of_es_weekly_0524" />
</record>

<record id="hr_payroll_es_anual_0521_line006" model="hr.payroll.es.line">
<field name="name">6</field>
<field name="inf_sup">1023.76</field>
<field name="lim_sup">1086.19</field>
<field name="fix_fee">81.55</field>
<field name="line_id" ref="table_of_es_weekly_0524" />
</record>

<record id="hr_payroll_es_anual_0521_line007" model="hr.payroll.es.line">
<field name="name">7</field>
<field name="inf_sup">1086.20</field>
<field name="lim_sup">1228.57</field>
<field name="fix_fee">74.83</field>
<field name="line_id" ref="table_of_es_weekly_0524" />
</record>

<record id="hr_payroll_es_anual_0521_line008" model="hr.payroll.es.line">
<field name="name">8</field>
<field name="inf_sup">1228.58</field>
<field name="lim_sup">1433.32</field>
<field name="fix_fee">67.83</field>
<field name="line_id" ref="table_of_es_weekly_0524" />
</record>

<record id="hr_payroll_es_anual_0521_line009" model="hr.payroll.es.line">
<field name="name">9</field>
<field name="inf_sup">1433.33</field>
<field name="lim_sup">1638.07</field>
<field name="fix_fee">58.38</field>
<field name="line_id" ref="table_of_es_weekly_0524" />
</record>

<record id="hr_payroll_es_anual_0521_line010" model="hr.payroll.es.line">
<field name="name">10</field>
<field name="inf_sup">1638.08</field>
<field name="lim_sup">1699.88</field>
<field name="fix_fee">50.12</field>
<field name="line_id" ref="table_of_es_weekly_0524" />
</record>

<record id="hr_payroll_es_anual_0521_line011" model="hr.payroll.es.line">
<field name="name">11</field>
<field name="inf_sup">1699.89</field>
<field name="lim_sup">999999999.00</field>
<field name="fix_fee">0.00</field>
<field name="line_id" ref="table_of_es_weekly_0524" />
</record>
</odoo>
Loading
Loading