odoo-addon-openupgrade-scripts 16.0.1.0.4.36__py3-none-any.whl → 16.0.1.0.4.37__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/openupgrade_scripts/scripts/hr_work_entry_contract/16.0.1.0/pre-migration.py +24 -0
- odoo/addons/openupgrade_scripts/scripts/hr_work_entry_contract/16.0.1.0/upgrade_analysis_work.txt +8 -0
- {odoo_addon_openupgrade_scripts-16.0.1.0.4.36.dist-info → odoo_addon_openupgrade_scripts-16.0.1.0.4.37.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-16.0.1.0.4.36.dist-info → odoo_addon_openupgrade_scripts-16.0.1.0.4.37.dist-info}/RECORD +6 -4
- {odoo_addon_openupgrade_scripts-16.0.1.0.4.36.dist-info → odoo_addon_openupgrade_scripts-16.0.1.0.4.37.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-16.0.1.0.4.36.dist-info → odoo_addon_openupgrade_scripts-16.0.1.0.4.37.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
from openupgradelib import openupgrade
|
2
|
+
|
3
|
+
|
4
|
+
@openupgrade.migrate()
|
5
|
+
def migrate(env, version):
|
6
|
+
if not openupgrade.column_exists(env.cr, "hr_contract", "last_generation_date"):
|
7
|
+
openupgrade.logged_query(
|
8
|
+
env.cr,
|
9
|
+
"""
|
10
|
+
ALTER TABLE hr_contract
|
11
|
+
ADD COLUMN IF NOT EXISTS last_generation_date date;
|
12
|
+
""",
|
13
|
+
)
|
14
|
+
openupgrade.logged_query(
|
15
|
+
env.cr,
|
16
|
+
"""
|
17
|
+
UPDATE hr_contract
|
18
|
+
SET last_generation_date = (
|
19
|
+
SELECT MAX(date(create_date))
|
20
|
+
FROM hr_work_entry
|
21
|
+
WHERE contract_id = hr_contract.id
|
22
|
+
)
|
23
|
+
""",
|
24
|
+
)
|
odoo/addons/openupgrade_scripts/scripts/hr_work_entry_contract/16.0.1.0/upgrade_analysis_work.txt
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---Models in module 'hr_work_entry_contract'---
|
2
|
+
---Fields in module 'hr_work_entry_contract'---
|
3
|
+
hr_work_entry_contract / hr.contract / last_generation_date (date) : NEW
|
4
|
+
# DONE: pre-migration (set value)
|
5
|
+
hr_work_entry_contract / hr.contract / work_entry_source (selection) : NEW required, selection_keys: ['calendar'], hasdefault: default
|
6
|
+
---XML records in module 'hr_work_entry_contract'---
|
7
|
+
NEW ir.cron: hr_work_entry_contract.ir_cron_generate_missing_work_entries (noupdate)
|
8
|
+
NEW ir.ui.view: hr_work_entry_contract.hr_contract_view_form_inherit_work_entry
|
@@ -209,7 +209,9 @@ odoo/addons/openupgrade_scripts/scripts/hr_timesheet_attendance/16.0.1.1/upgrade
|
|
209
209
|
odoo/addons/openupgrade_scripts/scripts/hr_timesheet_attendance/16.0.1.1/upgrade_analysis_work.txt,sha256=CWoHbjP9h8ae7-7q939Uh0ew8Sf0qqP72hIAKPbVp5M,558
|
210
210
|
odoo/addons/openupgrade_scripts/scripts/hr_work_entry/16.0.1.0/upgrade_analysis.txt,sha256=cAbyDftyWWrH859s-9Iy18Oq5FrmvyKtmX8H5_V7ZHE,275
|
211
211
|
odoo/addons/openupgrade_scripts/scripts/hr_work_entry/16.0.1.0/upgrade_analysis_work.txt,sha256=81_dBPy7kz6bbzM1IaF9o8UQipkXsWLU-xDg26CUa6w,291
|
212
|
+
odoo/addons/openupgrade_scripts/scripts/hr_work_entry_contract/16.0.1.0/pre-migration.py,sha256=X3IxtOxzdYwaLw_KjBOEuJO1pp7sNJB6Mo18qYTZFcI,688
|
212
213
|
odoo/addons/openupgrade_scripts/scripts/hr_work_entry_contract/16.0.1.0/upgrade_analysis.txt,sha256=H4xuArLCSzJ4blG0j_iWhlk1_aXLW3b5jZeaCZLp2JY,550
|
214
|
+
odoo/addons/openupgrade_scripts/scripts/hr_work_entry_contract/16.0.1.0/upgrade_analysis_work.txt,sha256=tepG0UUip0UonYBZodQU1qU70nMQYlk0--jypWI2zPY,584
|
213
215
|
odoo/addons/openupgrade_scripts/scripts/hr_work_entry_holidays/16.0.1.0/upgrade_analysis.txt,sha256=-wF9U3GWdsuzBlkc7Gz2XYElk4lAGOAmtBUwX8nwVKI,189
|
214
216
|
odoo/addons/openupgrade_scripts/scripts/iap/16.0.1.1/upgrade_analysis.txt,sha256=m_-TjWi5058tgVrFB8i8ZR5UxeAX7mOTHHkwNU7iXg8,132
|
215
217
|
odoo/addons/openupgrade_scripts/scripts/iap/16.0.1.1/upgrade_analysis_work.txt,sha256=ZvGbDvdN2NOIVO53FsIezeDVEhSknG8gAlhjHfinTXk,148
|
@@ -764,7 +766,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/16.0.1.0/upgrade_analysi
|
|
764
766
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
765
767
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
766
768
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=lhClLPKVfyr35iwnz9k0nWIaXit5yPHXUyoekhL3rsc,12722
|
767
|
-
odoo_addon_openupgrade_scripts-16.0.1.0.4.
|
768
|
-
odoo_addon_openupgrade_scripts-16.0.1.0.4.
|
769
|
-
odoo_addon_openupgrade_scripts-16.0.1.0.4.
|
770
|
-
odoo_addon_openupgrade_scripts-16.0.1.0.4.
|
769
|
+
odoo_addon_openupgrade_scripts-16.0.1.0.4.37.dist-info/METADATA,sha256=pHXW8uTA6FJtHoJ5fDm7n83B2MaK5WOJMF4OpSZlX4I,3784
|
770
|
+
odoo_addon_openupgrade_scripts-16.0.1.0.4.37.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
771
|
+
odoo_addon_openupgrade_scripts-16.0.1.0.4.37.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
772
|
+
odoo_addon_openupgrade_scripts-16.0.1.0.4.37.dist-info/RECORD,,
|
File without changes
|