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

[14.0][MIG] hr_contract #2996

Merged
merged 2 commits into from
Dec 11, 2021
Merged
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
2 changes: 1 addition & 1 deletion docsource/modules130-140.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Module coverage 13.0 -> 14.0
+--------------------------------------------+-------------------------------------------------+
|hr_attendance | |
+--------------------------------------------+-------------------------------------------------+
|hr_contract | |
|hr_contract | Done |
+--------------------------------------------+-------------------------------------------------+
|hr_expense | |
+--------------------------------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="ir_rule_hr_contract_multi_company" model="ir.rule">
<field name="global"/>
</record>
<!--<record id="ir_rule_hr_contract_multi_company" model="ir.rule">
<field name="global"/>
</record>-->
<record id="mt_department_contract_pending" model="mail.message.subtype">
<field name="parent_id" ref="mt_contract_pending"/>
</record>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (C) 2021 Open Source Integrators <https://www.opensourceintegrators.com/>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
# Load noupdate changes
openupgrade.load_data(env.cr, "hr_contract", "14.0.1.0/noupdate_changes.xml")
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---Models in module 'hr_contract'---
new model hr.payroll.structure.type
# NOTHING TO DO

---Fields in module 'hr_contract'---
hr_contract / hr.contract / advantages (text) : DEL
# NOTHING TO DO: unused field

hr_contract / hr.contract / company_id (many2one) : now a function
hr_contract / hr.contract / department_id (many2one) : now a function
hr_contract / hr.contract / job_id (many2one) : now a function
hr_contract / hr.contract / resource_calendar_id (many2one): now a function
# NOTHING TO DO: Computed writable fields whose dependencies are not changed

hr_contract / hr.contract / message_has_sms_error (boolean): module is now 'sms' ('hr_contract')
hr_contract / hr.contract / website_message_ids (one2many): module is now 'portal' ('hr_contract')
# NOTHING TO DO

hr_contract / hr.employee / medic_exam (date) : DEL
# NOTHING TO DO: unused field

hr_contract / hr.contract / structure_type_id (many2one) : NEW relation: hr.payroll.structure.type
hr_contract / hr.payroll.structure.type / country_id (many2one) : NEW relation: res.country, hasdefault
hr_contract / hr.payroll.structure.type / default_resource_calendar_id (many2one): NEW relation: resource.calendar, hasdefault
hr_contract / hr.payroll.structure.type / name (char) : NEW
# NOTHING TO DO: new feature for categorizing contracts

---XML records in module 'hr_contract'---
NEW hr.payroll.structure.type: hr_contract.structure_type_employee (noupdate)
NEW hr.payroll.structure.type: hr_contract.structure_type_employee_cp200 (noupdate)
NEW hr.payroll.structure.type: hr_contract.structure_type_employee_cp200_pfi (noupdate)
NEW hr.payroll.structure.type: hr_contract.structure_type_worker (noupdate)
NEW ir.model.access: hr_contract.access_hr_payroll_structure_type_hr_contract_manager
NEW ir.rule: hr_contract.ir_rule_hr_payroll_structure_type_multi_company (noupdate)
NEW ir.ui.view: hr_contract.hr_departure_wizard_view_form
DEL ir.ui.view: hr_contract.hr_employee_view_kanban
# NOTHING TO DO