odoo-addon-openupgrade-scripts 16.0.1.0.3.267__py3-none-any.whl → 16.0.1.0.3.268__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,32 @@
1
+ from openupgradelib import openupgrade
2
+
3
+
4
+ def fetchmail_server_set_gmail_server_type(env):
5
+ if openupgrade.column_exists(
6
+ env.cr, "fetchmail_server", "use_google_gmail_service"
7
+ ):
8
+ openupgrade.logged_query(
9
+ env.cr,
10
+ """
11
+ UPDATE fetchmail_server
12
+ SET server_type='gmail'
13
+ WHERE use_google_gmail_service = true;
14
+ """,
15
+ )
16
+
17
+
18
+ def ir_mail_server_set_gmail_smtp_authentication(env):
19
+ openupgrade.logged_query(
20
+ env.cr,
21
+ """
22
+ UPDATE ir_mail_server
23
+ SET smtp_authentication='gmail'
24
+ WHERE use_google_gmail_service = true;
25
+ """,
26
+ )
27
+
28
+
29
+ @openupgrade.migrate()
30
+ def migrate(env, version):
31
+ fetchmail_server_set_gmail_server_type(env)
32
+ ir_mail_server_set_gmail_smtp_authentication(env)
@@ -0,0 +1,19 @@
1
+ ---Models in module 'google_gmail'---
2
+ ---Fields in module 'google_gmail'---
3
+ google_gmail / fetchmail.server / google_gmail_access_token (char): previously in module fetchmail_gmail
4
+ google_gmail / fetchmail.server / google_gmail_access_token_expiration (integer): previously in module fetchmail_gmail
5
+ google_gmail / fetchmail.server / google_gmail_authorization_code (char): previously in module fetchmail_gmail
6
+ google_gmail / fetchmail.server / google_gmail_refresh_token (char): previously in module fetchmail_gmail
7
+ google_gmail / fetchmail.server / google_gmail_uri (char) : previously in module fetchmail_gmail
8
+ # NOTHING TO DO: fetchmail_gmail has been merged into this
9
+
10
+ google_gmail / fetchmail.server / server_type (False) : NEW selection_keys: ['gmail', 'imap', 'local', 'pop'], mode: modify
11
+ # DONE pre-migration: fill value server_type is gmail if use_google_gmail_service is enable
12
+
13
+ google_gmail / ir.mail_server / smtp_authentication (False) : NEW selection_keys: ['certificate', 'gmail', 'login'], mode: modify
14
+ google_gmail / ir.mail_server / use_google_gmail_service (boolean): DEL
15
+ # DONE pre-migration: fill value smtp_authentication is gmail if use_google_gmail_service is enable
16
+
17
+ ---XML records in module 'google_gmail'---
18
+ NEW ir.ui.view: google_gmail.fetchmail_server_view_form
19
+ # NOTHING TO DO
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade-scripts
3
- Version: 16.0.1.0.3.267
3
+ Version: 16.0.1.0.3.268
4
4
  Summary: Module that contains all the migrations analysis and scripts for migrate Odoo SA modules.
5
5
  Home-page: https://github.com/OCA/OpenUpgrade
6
6
  Author: Odoo Community Association (OCA)
@@ -131,7 +131,9 @@ odoo/addons/openupgrade_scripts/scripts/google_account/16.0.1.0/upgrade_analysis
131
131
  odoo/addons/openupgrade_scripts/scripts/google_calendar/16.0.1.0/pre-migration.py,sha256=pr7pQBxDlCPX-NiS3yxc0jCNQPhG13QXmGgAbzjKc0A,368
132
132
  odoo/addons/openupgrade_scripts/scripts/google_calendar/16.0.1.0/upgrade_analysis.txt,sha256=vtlGaXwEI5VzGKgNJ3n1iOzlHnVm_tiFtxJdaSUtajc,773
133
133
  odoo/addons/openupgrade_scripts/scripts/google_calendar/16.0.1.0/upgrade_analysis_work.txt,sha256=nOmkTeFL8yX645S3W3AiZNIZjMR-n6nB8zFN2o5CanI,934
134
+ odoo/addons/openupgrade_scripts/scripts/google_gmail/16.0.1.2/pre-migration.py,sha256=BAiL69BN72fnfUaU-_1LeqnqMIspIdlQ367N4ESmmHk,819
134
135
  odoo/addons/openupgrade_scripts/scripts/google_gmail/16.0.1.2/upgrade_analysis.txt,sha256=T6iNOaVAnUJyuehQ1uwTr8C9cXKmZU_Mw3EQQ2hPu1c,685
136
+ odoo/addons/openupgrade_scripts/scripts/google_gmail/16.0.1.2/upgrade_analysis_work.txt,sha256=ZFiT39XdvjqP9MWdctq_OLT4yaKvi034a9tSmIarJsA,1395
135
137
  odoo/addons/openupgrade_scripts/scripts/hr/16.0.1.1/noupdate_changes.xml,sha256=7Kh6ikV0c8llO66FzBlAXZuPURS0oJLO43aQSqKs9ow,950
136
138
  odoo/addons/openupgrade_scripts/scripts/hr/16.0.1.1/post-migration.py,sha256=uZ5qQzNQBbWlN27aLGrXw4veYihiDgrGvVHNlRGMRBY,7362
137
139
  odoo/addons/openupgrade_scripts/scripts/hr/16.0.1.1/pre-migration.py,sha256=b1fnQVhiZBROobyiQhCmJ2y3CtCmEL7QtuL1Sijk3YQ,1704
@@ -701,7 +703,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/16.0.1.0/upgrade_analysi
701
703
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
702
704
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
703
705
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=IOWtZdzr_jN_Dja8HYIfzIxrO8NE5pFgazKJtPsLKw0,12678
704
- odoo_addon_openupgrade_scripts-16.0.1.0.3.267.dist-info/METADATA,sha256=Q_D1dkf4Yn5suoH_vMDIe3BIs1YRaAJqFWrUy4j3yNQ,3810
705
- odoo_addon_openupgrade_scripts-16.0.1.0.3.267.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
706
- odoo_addon_openupgrade_scripts-16.0.1.0.3.267.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
707
- odoo_addon_openupgrade_scripts-16.0.1.0.3.267.dist-info/RECORD,,
706
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.268.dist-info/METADATA,sha256=9JnqbBtTO5FfSnoeROFtPA1GS_BuUxZ_Xrf_CsSOGI0,3810
707
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.268.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
708
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.268.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
709
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.268.dist-info/RECORD,,