Skip to content
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
14 changes: 7 additions & 7 deletions docsource/modules180-190.rst
Original file line number Diff line number Diff line change
Expand Up @@ -198,23 +198,23 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_org_chart |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_presence | | |
| hr_presence |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_recruitment |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_recruitment_skills | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_recruitment_sms | | |
| hr_recruitment_sms |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_recruitment_survey | |No DB layout changes. |
| hr_recruitment_survey |Done |No DB layout changes. |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_skills | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| |new| hr_skills_event | | |
| |new| hr_skills_event |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_skills_slides | | |
| hr_skills_slides |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_skills_survey | | |
| hr_skills_survey |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_timesheet |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand All @@ -224,7 +224,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| |del| hr_work_entry_contract | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_work_entry_holidays | |No DB layout changes. |
| hr_work_entry_holidays |Nothing to do |No DB layout changes. |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| |new| html_builder |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---Models in module 'hr_calendar'---

---Fields in module 'hr_calendar'---
hr_calendar / calendar.event / unavailable_partner_ids (many2many): module is now 'calendar' ('hr_calendar')

# NOTHING TO DO

---XML records in module 'hr_calendar'---
DEL ir.ui.view: hr_calendar.view_calendar_event_form
DEL ir.ui.view: hr_calendar.view_calendar_event_form_quick_create

# NOTHING TO DO
13 changes: 13 additions & 0 deletions openupgrade_scripts/scripts/hr_fleet/19.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from openupgradelib import openupgrade

_xmlids_to_delete = [
"hr_fleet.fleet_rule_contract_visibility_user",
"hr_fleet.fleet_rule_odometer_visibility_user",
"hr_fleet.fleet_rule_service_visibility_user",
"hr_fleet.fleet_rule_vehicle_visibility_user",
]


@openupgrade.migrate()
def migrate(env, version):
openupgrade.delete_records_safely_by_xml_id(env, _xmlids_to_delete)
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---Models in module 'hr_fleet'---

---Fields in module 'hr_fleet'---

---XML records in module 'hr_fleet'---
DEL ir.rule: hr_fleet.fleet_rule_contract_visibility_user (noupdate)
DEL ir.rule: hr_fleet.fleet_rule_odometer_visibility_user (noupdate)
DEL ir.rule: hr_fleet.fleet_rule_service_visibility_user (noupdate)
DEL ir.rule: hr_fleet.fleet_rule_vehicle_visibility_user (noupdate)
DEL ir.ui.view: hr_fleet.res_users_view_form_preferences
# DONE: delete_records_safely_by_xml_id in pre-migration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---Models in module 'hr_gamification'---

---Fields in module 'hr_gamification'---

---XML records in module 'hr_gamification'---
NEW ir.model.access: hr_gamification.badge_base_user
NEW ir.rule: hr_gamification.hr_gamification_badge_base_user_not_owned_access (noupdate)
NEW ir.rule: hr_gamification.hr_gamification_badge_base_user_owned_access (noupdate)
NEW ir.rule: hr_gamification.hr_gamification_badge_group_hr_user_access (noupdate)
NEW ir.ui.view: hr_gamification.view_current_badge_form

# NOTHING TO DO
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---Models in module 'hr_homeworking'---

---Fields in module 'hr_homeworking'---

---XML records in module 'hr_homeworking'---
NEW ir.ui.view: hr_homeworking.res_users_view_form

# NOTHING TO DO
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---Models in module 'hr_livechat'---

---Fields in module 'hr_livechat'---

---XML records in module 'hr_livechat'---
NEW ir.ui.view: hr_livechat.discuss_channel_looking_for_help_view_search
NEW ir.ui.view: hr_livechat.im_livechat_report_channel_view_search
NEW ir.ui.view: hr_livechat.website_livechat_agent_history_view_search

# NOTHING TO DO
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---Models in module 'hr_maintenance'---

---Fields in module 'hr_maintenance'---
hr_maintenance / res.users / equipment_ids (one2many) : DEL relation: maintenance.equipment

# NOTHING TO DO

---XML records in module 'hr_maintenance'---
NEW ir.ui.view: hr_maintenance.hr_employee_public_view_form
DEL ir.ui.view: hr_maintenance.res_users_view_form_preference

# NOTHING TO DO
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env, "hr_presence", "19.0.1.0/noupdate_changes.xml")
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---Models in module 'hr_presence'---

---Fields in module 'hr_presence'---

---XML records in module 'hr_presence'---
DEL ir.ui.view: hr_presence.hr_employee_view_tree
# NOTHING TO DO: Odoo's -u all cleanup removes orphan views.

# DONE: noupdate_changes.xml loaded in post-migration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---Models in module 'hr_recruitment_sms'---

---Fields in module 'hr_recruitment_sms'---

---XML records in module 'hr_recruitment_sms'---
DEL ir.actions.act_window: hr_recruitment_sms.action_hr_applicant_mass_sms
DEL ir.actions.act_window: hr_recruitment_sms.action_hr_candidate_mass_sms
NEW ir.actions.server: hr_recruitment_sms.action_applicant_send_sms

# NOTHING TO DO
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env, "hr_recruitment_survey", "19.0.1.0/noupdate_changes.xml")
openupgrade.delete_record_translations(
env.cr,
"hr_recruitment_survey",
[
"mail_template_applicant_interview_invite",
],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---Models in module 'hr_skills_event'---

---Fields in module 'hr_skills_event'---
hr_skills_event / hr.resume.line / course_type (False) : NEW selection_keys: ['external', 'onsite'], mode: modify
hr_skills_event / hr.resume.line / event_id (many2one) : NEW relation: event.event, isfunction: function, stored

# NOTHING TO DO

---XML records in module 'hr_skills_event'---
NEW ir.actions.act_window: hr_skills_event.event_training_onsite_action
NEW ir.ui.menu: hr_skills_event.menu_learnings_training_attendances_onsite
NEW ir.ui.view: hr_skills_event.resume_slides_line_view_form
NEW ir.ui.view: hr_skills_event.resume_slides_line_view_kanban
NEW ir.ui.view: hr_skills_event.resume_slides_line_view_list

# NOTHING TO DO
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from openupgradelib import openupgrade

# 18.0 eLearning training lines are display_type='course'; in 19.0 the
# categorization key is course_type='elearning' (hr_skills fills the new
# required column with its 'external' default, and channel_id's compute
# wipes the channel on any line whose course_type isn't 'elearning').


@openupgrade.migrate()
def migrate(env, version):
if openupgrade.column_exists(
env.cr, "hr_resume_line", "display_type"
) and openupgrade.column_exists(env.cr, "hr_resume_line", "course_type"):
openupgrade.logged_query(
env.cr,
"""
UPDATE hr_resume_line
SET course_type = 'elearning'
WHERE display_type = 'course'
""",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---Models in module 'hr_skills_slides'---

---Fields in module 'hr_skills_slides'---
hr_skills_slides / hr.resume.line / channel_id (many2one) : now a function
hr_skills_slides / hr.resume.line / course_type (False) : NEW selection_keys: ['elearning', 'external', 'onsite'], mode: modify
hr_skills_slides / hr.resume.line / course_url (char) : not a function anymore
hr_skills_slides / hr.resume.line / course_url (char) : now related
hr_skills_slides / hr.resume.line / display_type (False) : DEL selection_keys: ['certification', 'classic', 'course'], mode: modify
hr_skills_slides / hr.resume.line / duration (False) : NEW mode: modify, hasdefault: compute

# DONE: pre-migration: display_type='course' lines remapped to course_type='elearning' (keeps channel_id from being wiped by its compute)

---XML records in module 'hr_skills_slides'---
DEL hr.resume.line.type: hr_skills_slides.resume_type_training [renamed to hr_skills module]
NEW ir.actions.act_window: hr_skills_slides.slide_channel_training_elearning_action
NEW ir.ui.menu: hr_skills_slides.menu_learnings_training_attendances_elearning
NEW ir.ui.view: hr_skills_slides.hr_employee_public_resume_view_form_inherit
NEW ir.ui.view: hr_skills_slides.hr_employee_public_view_form
NEW ir.ui.view: hr_skills_slides.hr_employee_resume_view_form_inherit
NEW ir.ui.view: hr_skills_slides.resume_slides_line_view_kanban
NEW ir.ui.view: hr_skills_slides.resume_slides_line_view_list
NEW ir.ui.view: hr_skills_slides.slide_channel_view_list

# NOTHING TO DO
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---Models in module 'hr_skills_survey'---

---Fields in module 'hr_skills_survey'---
hr_skills_survey / hr.resume.line / department_id (False) : NEW mode: modify
hr_skills_survey / hr.resume.line / department_id (many2one) : module is now 'hr_skills' ('hr_skills_survey')
hr_skills_survey / hr.resume.line / display_type (False) : DEL selection_keys: ['certification', 'classic'], mode: modify

# NOTHING TO DO

---XML records in module 'hr_skills_survey'---
DEL ir.actions.act_window: hr_skills_survey.hr_employee_certification_report_action [renamed to hr_skills module]
DEL ir.ui.menu: hr_skills_survey.hr_employee_certication_report_menu
DEL ir.ui.view: hr_skills_survey.hr_employee_certification_report_view_list
DEL ir.ui.view: hr_skills_survey.hr_resume_line_view_search

# NOTHING TO DO
Loading