Skip to content

Commit 4891eb7

Browse files
committed
[MIG] pos_hr: migrate for 17.0
1 parent fd844b1 commit 4891eb7

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

docsource/modules160-170.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ Module coverage 16.0 -> 17.0
772772
+---------------------------------------------------+----------------------+-------------------------------------------------+
773773
| |del| pos_epson_printer_restaurant | Nothing to do |Merged into point_of_sale. |
774774
+---------------------------------------------------+----------------------+-------------------------------------------------+
775-
| pos_hr | | |
775+
| pos_hr | Done | |
776776
+---------------------------------------------------+----------------------+-------------------------------------------------+
777777
| pos_hr_restaurant |Nothing to do |No analysis file |
778778
+---------------------------------------------------+----------------------+-------------------------------------------------+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo)
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
from openupgradelib import openupgrade
4+
5+
_tables_renames = [
6+
("hr_employee_pos_config_rel", "pos_hr_basic_employee_hr_employee"),
7+
]
8+
9+
10+
@openupgrade.migrate()
11+
def migrate(env, version):
12+
openupgrade.rename_tables(env.cr, _tables_renames)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---Models in module 'pos_hr'---
2+
---Fields in module 'pos_hr'---
3+
pos_hr / pos.config / advanced_employee_ids (many2many): NEW relation: hr.employee
4+
# NOTHING TO DO
5+
6+
pos_hr / pos.config / basic_employee_ids (many2many): NEW relation: hr.employee
7+
pos_hr / pos.config / employee_ids (many2many) : DEL relation: hr.employee
8+
# DONE: pre-migration: rename table
9+
10+
---XML records in module 'pos_hr'---

0 commit comments

Comments
 (0)