Skip to content
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---Fields in module 'hr_timesheet_sheet'---
hr_timesheet_sheet / hr.attendance / sheet_id (many2one) : module is now 'hr_timesheet_attendance' ('hr_timesheet_sheet')
hr_timesheet_sheet / hr_timesheet_sheet.sheet / attendance_count (integer) : module is now 'hr_timesheet_attendance' ('hr_timesheet_sheet')
hr_timesheet_sheet / hr_timesheet_sheet.sheet / attendances_ids (one2many) : module is now 'hr_timesheet_attendance' ('hr_timesheet_sheet')
hr_timesheet_sheet / hr_timesheet_sheet.sheet / period_ids (one2many) : module is now 'hr_timesheet_attendance' ('hr_timesheet_sheet')
hr_timesheet_sheet / hr_timesheet_sheet.sheet / total_attendance (float) : module is now 'hr_timesheet_attendance' ('hr_timesheet_sheet')
hr_timesheet_sheet / hr_timesheet_sheet.sheet / total_difference (float) : module is now 'hr_timesheet_attendance' ('hr_timesheet_sheet')
hr_timesheet_sheet / hr_timesheet_sheet.sheet / total_timesheet (float) : module is now 'hr_timesheet_attendance' ('hr_timesheet_sheet')
hr_timesheet_sheet / res.company / timesheet_max_difference (float): module is now 'hr_timesheet_attendance' ('hr_timesheet_sheet')
# Nothing to do: If hr_timesheet_attendance is installed, the columns will be used

hr_timesheet_sheet / hr_timesheet_sheet.sheet / website_message_ids (one2many): DEL relation: mail.message
# Nothing to do: mail stuff

hr_timesheet_sheet / res.company / timesheet_range (selection) : selection_keys is now '['month', 'week']' ('['day', 'month', 'week']')
# Done: day range is converted to week

---XML records in module 'hr_timesheet_sheet'---
DEL ir.actions.act_window: hr_timesheet_sheet.act_hr_timesheet_sheet_sheet_2_hr_analytic_timesheet
DEL ir.actions.act_window: hr_timesheet_sheet.act_hr_timesheet_sheet_sheet_2_hr_attendance
DEL ir.actions.act_window: hr_timesheet_sheet.act_hr_timesheet_sheet_sheet_by_account
DEL ir.actions.act_window: hr_timesheet_sheet.act_hr_timesheet_sheet_sheet_by_day
DEL ir.actions.act_window: hr_timesheet_sheet.action_hr_timesheet_current_open
DEL ir.actions.client: hr_timesheet_sheet.action_client_hr_timesheet_sheet_menu
NEW ir.actions.server: hr_timesheet_sheet.ir_actions_server_timesheet_sheet
DEL ir.actions.server: hr_timesheet_sheet.ir_actions_server_timsheet_sheet
DEL ir.actions.todo: base.open_menu
DEL ir.filters: hr_timesheet_sheet.filter_hr_timesheet_report_external_timesheets
DEL ir.filters: hr_timesheet_sheet.filter_hr_timesheet_report_internal_timesheets
DEL ir.model.access: hr_timesheet_sheet.access_hr_timesheet_sheet_sheet_day
NEW ir.ui.menu: hr_timesheet_sheet.menu_hr_to_approve
NEW ir.ui.view: hr_timesheet_sheet.view_config_settings_form_inherit_hr_timesheet_sheet
DEL ir.ui.view: hr_timesheet_sheet.hr_timesheet_day_tree
DEL ir.ui.view: hr_timesheet_sheet.hr_timesheet_sheet_company
DEL ir.ui.view: hr_timesheet_sheet.view_attendance_form
DEL ir.ui.view: hr_timesheet_sheet.view_attendance_tree
DEL ir.ui.view: hr_timesheet_sheet.view_attendance_tree_who
DEL ir.ui.view: hr_timesheet_sheet.view_hr_attendance_filter
DEL ir.ui.view: hr_timesheet_sheet.view_hr_timesheet_current_open
DEL ir.ui.view: hr_timesheet_sheet.view_timesheet_report_graph
DEL ir.ui.view: hr_timesheet_sheet.view_timesheet_report_search
DEL mail.message: hr_timesheet_sheet.hr_timesheet_module_install_notification
DEL workflow: hr_timesheet_sheet.wkf_timesheet
DEL workflow.activity: hr_timesheet_sheet.act_confirm
DEL workflow.activity: hr_timesheet_sheet.act_done
DEL workflow.activity: hr_timesheet_sheet.act_draft
DEL workflow.activity: hr_timesheet_sheet.act_new
DEL workflow.transition: hr_timesheet_sheet.t0
DEL workflow.transition: hr_timesheet_sheet.t1
DEL workflow.transition: hr_timesheet_sheet.t2
DEL workflow.transition: hr_timesheet_sheet.t3
# Nothing to do: noupdate=0 records
13 changes: 13 additions & 0 deletions addons/hr_timesheet_sheet/migrations/10.0.1.1/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.map_values(
env.cr, openupgrade.get_legacy_name('timesheet_range'),
'timesheet_range', [('day', 'month')], table='res_company',
)
16 changes: 16 additions & 0 deletions addons/hr_timesheet_sheet/migrations/10.0.1.1/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade

COLUMN_COPIES = {
'res_company': [
('timesheet_range', None, None),
],
}


@openupgrade.migrate()
def migrate(env, version):
openupgrade.copy_columns(env.cr, COLUMN_COPIES)
2 changes: 1 addition & 1 deletion odoo/openupgrade/doc/source/modules90-100.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ missing in the new release are marked with |del|.
+-----------------------------------+-----------------------------------+
| |new| hr_timesheet_attendance | |
+-----------------------------------+-----------------------------------+
|hr_timesheet_sheet | |
|hr_timesheet_sheet | Done |
+-----------------------------------+-----------------------------------+
|hw_blackbox_be | |
+-----------------------------------+-----------------------------------+
Expand Down