Skip to content

Commit

Permalink
Merge pull request #2996 from ForgeFlow/14.0-mig-hr_contract
Browse files Browse the repository at this point in the history
[14.0][MIG] hr_contract
  • Loading branch information
pedrobaeza authored Dec 11, 2021
2 parents dc68f61 + 1920f3d commit 9a44638
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 4 deletions.
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

0 comments on commit 9a44638

Please sign in to comment.