odoo-addon-openupgrade-scripts 17.0.1.0.1.129__py3-none-any.whl → 17.0.1.0.1.130__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.
@@ -89,6 +89,25 @@ def _mail_template_convert_report_template_m2o_to_m2m(env):
89
89
  )
90
90
 
91
91
 
92
+ def _fill_mail_message_outgoing(env):
93
+ # set outgoing messages
94
+ group = env.ref("base.group_user")
95
+ openupgrade.logged_query(
96
+ env.cr,
97
+ f"""
98
+ UPDATE mail_message mm
99
+ SET message_type = 'email_outgoing'
100
+ FROM mail_mail mail, res_partner rp
101
+ JOIN res_users ru ON ru.partner_id = rp.id
102
+ JOIN res_groups_users_rel rel ON rel.uid = ru.id
103
+ AND rel.gid = {group.id}
104
+ WHERE mm.message_type = 'email'
105
+ AND mm.message_id like '%-openerp-' || mm.res_id || '-' || mm.model || '@%'
106
+ AND (mm.author_id = rp.id OR mail.mail_message_id = mm.id)
107
+ """,
108
+ )
109
+
110
+
92
111
  def _mail_activity_plan_template(env):
93
112
  """If the OCA mail_activity_plan module was installed, we create the
94
113
  mail.activity.plan.template records.
@@ -140,4 +159,5 @@ def migrate(env, version):
140
159
  _fill_res_company_alias_domain_id(env)
141
160
  _mail_alias_fill_alias_full_name(env)
142
161
  _mail_template_convert_report_template_m2o_to_m2m(env)
162
+ _fill_mail_message_outgoing(env)
143
163
  _mail_activity_plan_template(env)
@@ -120,7 +120,8 @@ mail / mail.shortcode / message_ids (many2one) : DEL re
120
120
  # NOTHING TO DO: following commit https://github.com/odoo/odoo/pull/138938/commits/94b71f74ba20733110c123e1c02df9a384fe9d74
121
121
 
122
122
  mail / mail.message / message_type (selection) : selection_keys is now '['auto_comment', 'comment', 'email', 'email_outgoing', 'notification', 'user_notification']' ('['comment', 'email', 'notification', 'user_notification']')
123
- # NOTHING TO DO: well when odoo backport https://github.com/odoo/odoo/pull/149576 in 15, nothing to do either because there is no way to detect and fill for 'auto_common' and 'email_outgoing'
123
+ # NOTHING TO DO (auto_comment): well when odoo backport https://github.com/odoo/odoo/pull/149576 in 15, nothing to do because there is no way to detect and fill for 'auto_comment'
124
+ # DONE (email_outgoing): post-migration: set 'email_outgoing' emails using message_id
124
125
 
125
126
  mail / mail.message / pinned_at (datetime) : NEW
126
127
  # NOTHING TO DO: new feature to pin message
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade_scripts
3
- Version: 17.0.1.0.1.129
3
+ Version: 17.0.1.0.1.130
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo>=17.0a,<17.1dev
6
6
  Requires-Dist: openupgradelib
@@ -329,10 +329,10 @@ odoo/addons/openupgrade_scripts/scripts/link_tracker/17.0.1.1/upgrade_analysis_w
329
329
  odoo/addons/openupgrade_scripts/scripts/loyalty/17.0.1.0/upgrade_analysis.txt,sha256=jWV55rwgBPyCjXd0gEJnIEisKco9NECZ2seDTfB7iK0,689
330
330
  odoo/addons/openupgrade_scripts/scripts/lunch/17.0.1.0/upgrade_analysis.txt,sha256=tTe-ZlM47vbXf75E9H8TVoqH5QMiwIx5MeRcsX4SWeo,483
331
331
  odoo/addons/openupgrade_scripts/scripts/mail/17.0.1.15/noupdate_changes.xml,sha256=zwIjcc9ffaXXRJUMAVSlCuxpdj6CuOQxcoMMMr22f1M,580
332
- odoo/addons/openupgrade_scripts/scripts/mail/17.0.1.15/post-migration.py,sha256=j6i5RutxhzIFAbi3jHhHgfh9ueT32vPp4yD4s28WCho,4206
332
+ odoo/addons/openupgrade_scripts/scripts/mail/17.0.1.15/post-migration.py,sha256=1LAbraxU4UU-0kujzAH1ZtTMo4gaTJUZAm6Xm_ITyMA,4883
333
333
  odoo/addons/openupgrade_scripts/scripts/mail/17.0.1.15/pre-migration.py,sha256=WuBHdaUIqCCYWfZf7qChdd4_AvZ0IzWQtxOZe89NUSQ,4496
334
334
  odoo/addons/openupgrade_scripts/scripts/mail/17.0.1.15/upgrade_analysis.txt,sha256=GyLpga-5sv4cRCbvixwqt1OTzLQXgeomkqZqms-01HY,29205
335
- odoo/addons/openupgrade_scripts/scripts/mail/17.0.1.15/upgrade_analysis_work.txt,sha256=18k992hTTM5h9tphTZEih0SjW0w-7ZtJhUSuKSAYrXQ,25769
335
+ odoo/addons/openupgrade_scripts/scripts/mail/17.0.1.15/upgrade_analysis_work.txt,sha256=A8qmfoZV61AlyhodcoFi3ybWWn4xWeVN81xJAkEITg4,25843
336
336
  odoo/addons/openupgrade_scripts/scripts/mail_bot/17.0.1.2/upgrade_analysis.txt,sha256=ejERvDwnBDajVnF6gvSuVxwZ_y6EfX2_oL7s0BM8u8M,147
337
337
  odoo/addons/openupgrade_scripts/scripts/mail_group/17.0.1.1/upgrade_analysis.txt,sha256=E0agjcK6Npj-0X_35yQi_ecGrkAR7qjEHVrTVtNuH-4,489
338
338
  odoo/addons/openupgrade_scripts/scripts/mail_plugin/17.0.1.0/upgrade_analysis.txt,sha256=h6XIVfM3wiiw-zTZJGStrvhE2Yl99HnLUU2aMhwzQlQ,154
@@ -589,7 +589,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
589
589
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
590
590
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
591
591
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
592
- odoo_addon_openupgrade_scripts-17.0.1.0.1.129.dist-info/METADATA,sha256=4ZlojaAU1bqgtZiDbST1GRA9ePcZgPyxA_2HUg3QdLw,3786
593
- odoo_addon_openupgrade_scripts-17.0.1.0.1.129.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
594
- odoo_addon_openupgrade_scripts-17.0.1.0.1.129.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
595
- odoo_addon_openupgrade_scripts-17.0.1.0.1.129.dist-info/RECORD,,
592
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.130.dist-info/METADATA,sha256=EXXaWb8uW2EsHDhWxv1Dh_lC-9A9I1RxCKZ9T1_NM8s,3786
593
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.130.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
594
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.130.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
595
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.130.dist-info/RECORD,,