odoo-addon-openupgrade-scripts 17.0.1.0.1.363__py3-none-any.whl → 17.0.1.0.1.368__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.
@@ -0,0 +1,34 @@
1
+ # Copyright 2025 Tecnativa - Carlos Lopez
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+ from openupgradelib import openupgrade
4
+
5
+
6
+ def _fill_microsoft_calendar_credentials_res_users(env):
7
+ openupgrade.logged_query(
8
+ env.cr,
9
+ """
10
+ INSERT INTO microsoft_calendar_credentials (
11
+ create_uid, write_uid, create_date, write_date,
12
+ calendar_sync_token, synchronization_stopped
13
+ )
14
+ SELECT id, id, create_date, write_date,
15
+ microsoft_calendar_sync_token, microsoft_synchronization_stopped
16
+ FROM res_users
17
+ WHERE microsoft_calendar_sync_token IS NOT NULL
18
+ """,
19
+ )
20
+ openupgrade.logged_query(
21
+ env.cr,
22
+ """
23
+ UPDATE res_users ru
24
+ SET microsoft_calendar_account_id = mc.id
25
+ FROM microsoft_calendar_credentials mc
26
+ WHERE mc.calendar_sync_token = ru.microsoft_calendar_sync_token
27
+ AND ru.microsoft_calendar_account_id IS NULL
28
+ """,
29
+ )
30
+
31
+
32
+ @openupgrade.migrate()
33
+ def migrate(env, version=None):
34
+ _fill_microsoft_calendar_credentials_res_users(env)
@@ -0,0 +1,24 @@
1
+ ---Models in module 'microsoft_calendar'---
2
+ new model microsoft.calendar.credentials
3
+ ---Fields in module 'microsoft_calendar'---
4
+ microsoft_calendar / microsoft.calendar.credentials / calendar_sync_token (char) : NEW
5
+ microsoft_calendar / microsoft.calendar.credentials / last_sync_date (datetime) : NEW
6
+ microsoft_calendar / microsoft.calendar.credentials / synchronization_stopped (boolean): NEW
7
+ microsoft_calendar / microsoft.calendar.credentials / user_ids (one2many) : NEW relation: res.users, required
8
+ microsoft_calendar / res.users / microsoft_calendar_account_id (many2one): NEW relation: microsoft.calendar.credentials
9
+ # DONE: post-migration: Populate the table with user information
10
+
11
+ microsoft_calendar / res.users / microsoft_calendar_sync_token (char): not stored anymore
12
+ microsoft_calendar / res.users / microsoft_calendar_sync_token (char): now related
13
+ microsoft_calendar / res.users / microsoft_synchronization_stopped (boolean): not stored anymore
14
+ microsoft_calendar / res.users / microsoft_synchronization_stopped (boolean): now related
15
+ # NOTHING TO DO: Handled by the ORM
16
+
17
+ ---XML records in module 'microsoft_calendar'---
18
+ NEW ir.model.access: microsoft_calendar.access_microsoft_calendar_credentials
19
+ NEW ir.model.access: microsoft_calendar.microsoft_calendar_manager
20
+ NEW ir.model.constraint: microsoft_calendar.constraint_res_users_microsoft_token_uniq
21
+ NEW ir.rule: microsoft_calendar.microsoft_calendar_not_own_token_rule (noupdate)
22
+ NEW ir.rule: microsoft_calendar.microsoft_calendar_own_token_rule (noupdate)
23
+ NEW ir.rule: microsoft_calendar.microsoft_calendar_token_system_access (noupdate)
24
+ # NOTHING TO DO: Handled by the ORM
@@ -0,0 +1,12 @@
1
+ ---Models in module 'website_livechat'---
2
+ ---Fields in module 'website_livechat'---
3
+ website_livechat / website.visitor / discuss_channel_ids (one2many): NEW relation: discuss.channel
4
+ website_livechat / website.visitor / mail_channel_ids (one2many) : DEL relation: mail.channel
5
+ # NOTHING TO DO: Renaming was done in the mail module.
6
+
7
+ ---XML records in module 'website_livechat'---
8
+ NEW ir.model.access: website_livechat.access_im_livechat_channel_public_employee
9
+ NEW ir.model.access: website_livechat.access_im_livechat_channel_public_portal
10
+ NEW ir.model.access: website_livechat.access_im_livechat_channel_public_public
11
+ DEL ir.model.access: website_livechat.access_im_livechat_channel_public
12
+ # NOTHING TO DO: Handled by the ORM
@@ -0,0 +1,8 @@
1
+ ---Models in module 'website_twitter'---
2
+ ---Fields in module 'website_twitter'---
3
+ ---XML records in module 'website_twitter'---
4
+ NEW ir.model.access: website_twitter.access_website_twitter_tweet_public_employee
5
+ NEW ir.model.access: website_twitter.access_website_twitter_tweet_public_portal
6
+ NEW ir.model.access: website_twitter.access_website_twitter_tweet_public_public
7
+ DEL ir.model.access: website_twitter.access_website_twitter_tweet_public
8
+ # NOTHING TO DO: Handled by the ORM
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade_scripts
3
- Version: 17.0.1.0.1.363
3
+ Version: 17.0.1.0.1.368
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo>=17.0a,<17.1dev
6
6
  Requires-Dist: openupgradelib
@@ -439,7 +439,9 @@ odoo/addons/openupgrade_scripts/scripts/membership/17.0.1.0/pre-migration.py,sha
439
439
  odoo/addons/openupgrade_scripts/scripts/membership/17.0.1.0/upgrade_analysis.txt,sha256=j4vniS-JNd5XTKN4pvbd3etahcJmn8zMcs7ATL8awGY,300
440
440
  odoo/addons/openupgrade_scripts/scripts/membership/17.0.1.0/upgrade_analysis_work.txt,sha256=r7qp2tiAAlJhVLKVq-9i1H01K9YffWGX-szRLwN_4AQ,354
441
441
  odoo/addons/openupgrade_scripts/scripts/microsoft_account/17.0.1.0/upgrade_analysis.txt,sha256=A-hAfz4jaf1_-Uw2-6JP4inCGDe6LXPvVvXb7Dk9Nyc,174
442
+ odoo/addons/openupgrade_scripts/scripts/microsoft_calendar/17.0.1.0/post-migration.py,sha256=-cKhyRHLDdDHLAIDD0gHi-h8ZDmRqSu0x5Tp-unpjVQ,1114
442
443
  odoo/addons/openupgrade_scripts/scripts/microsoft_calendar/17.0.1.0/upgrade_analysis.txt,sha256=EHFEvy7AiiO0ZtkXFxTv4k_pjvLONtoHy_-lF_Ufou0,1597
444
+ odoo/addons/openupgrade_scripts/scripts/microsoft_calendar/17.0.1.0/upgrade_analysis_work.txt,sha256=5zrf7UVq-Kkt0yGX8MNLrWoH3K9timioaSuW0Ks5OK0,1736
443
445
  odoo/addons/openupgrade_scripts/scripts/microsoft_outlook/17.0.1.1/upgrade_analysis.txt,sha256=AN9OrdoYh8Y4Fk0wPIc2_UuVePoboGlV1VonIbSS1Lk,338
444
446
  odoo/addons/openupgrade_scripts/scripts/microsoft_outlook/17.0.1.1/upgrade_analysis_work.txt,sha256=-374lFqAJ-x8jr2mAvmDSjibdLABaYyEbxavoveOxEc,355
445
447
  odoo/addons/openupgrade_scripts/scripts/mrp/17.0.2.0/post-migration.py,sha256=IuZRbgW5pPDmOCkdOnCfU2DI4lrJ-_jGPRDRaR_kIoE,937
@@ -725,6 +727,7 @@ odoo/addons/openupgrade_scripts/scripts/website_hr_recruitment/17.0.1.1/upgrade_
725
727
  odoo/addons/openupgrade_scripts/scripts/website_hr_recruitment/17.0.1.1/upgrade_analysis_work.txt,sha256=rv3UI_z7rwLVh_ddyvi6X8709hkONmkvSd9kwKu0xp4,908
726
728
  odoo/addons/openupgrade_scripts/scripts/website_jitsi/17.0.1.0/upgrade_analysis.txt,sha256=UzHl2nfT05b9LOrVtS0ZMq1JlSmG2lWMuoMqOk-ib68,162
727
729
  odoo/addons/openupgrade_scripts/scripts/website_livechat/17.0.1.0/upgrade_analysis.txt,sha256=RkBT1gWs5u1IoBdY1YfHR5D9iQ5_e-MSnHCrK427KoY,655
730
+ odoo/addons/openupgrade_scripts/scripts/website_livechat/17.0.1.0/upgrade_analysis_work.txt,sha256=idHo3T4D5Uk9HzCMzWN906-isQMiaMTk8uPABl_SeSU,747
728
731
  odoo/addons/openupgrade_scripts/scripts/website_mass_mailing/17.0.1.0/upgrade_analysis.txt,sha256=c1WE8hDv2O0F3IakOGJfcYwmdEZ8nc11sojJaXBF4-8,203
729
732
  odoo/addons/openupgrade_scripts/scripts/website_mass_mailing/17.0.1.0/upgrade_analysis_work.txt,sha256=S8sm0Z99jDePpCF8KYzXfjztHlM5cW4DKaXQcGd8arg,219
730
733
  odoo/addons/openupgrade_scripts/scripts/website_membership/17.0.1.0/upgrade_analysis work.txt,sha256=ibxBUWpbWu7Ky8i9njDfYXwAnmVRFVXXhsC0YMxZmaQ,360
@@ -767,10 +770,11 @@ odoo/addons/openupgrade_scripts/scripts/website_slides_forum/17.0.1.0/upgrade_an
767
770
  odoo/addons/openupgrade_scripts/scripts/website_slides_survey/17.0.1.0/upgrade_analysis.txt,sha256=9fjMS7VqhSVDSkhRX9OII63hQPg3xrr6OgZkVvy4R4I,210
768
771
  odoo/addons/openupgrade_scripts/scripts/website_slides_survey/17.0.1.0/upgrade_analysis_work.txt,sha256=GlNpEAAygyDfT8ORyRLswh4MtVTJv9VdM2qzAw6N_Pg,226
769
772
  odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysis.txt,sha256=LkD-dmj3O-mCIQ1tlhgb4JpGIQ8_lw_apInOSN8O93o,443
773
+ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysis_work.txt,sha256=5cpiOakDEpU2d0B5ryUzFTBf1i62oRAsQa4iLYApLeI,479
770
774
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
771
775
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
772
776
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
773
- odoo_addon_openupgrade_scripts-17.0.1.0.1.363.dist-info/METADATA,sha256=s0VeClfA7kJRGBA-k85q6hQ1DQr3GmVa0dPS1AFEfJc,3786
774
- odoo_addon_openupgrade_scripts-17.0.1.0.1.363.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
775
- odoo_addon_openupgrade_scripts-17.0.1.0.1.363.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
776
- odoo_addon_openupgrade_scripts-17.0.1.0.1.363.dist-info/RECORD,,
777
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.368.dist-info/METADATA,sha256=GQysUGBXBxK7brv8vczjS2Pc-fi34DVW-mfH611kDZY,3786
778
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.368.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
779
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.368.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
780
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.368.dist-info/RECORD,,