odoo-addon-openupgrade-scripts 17.0.1.0.1.67__py3-none-any.whl → 17.0.1.0.1.71__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,14 @@
1
+ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2
+ from openupgradelib import openupgrade
3
+
4
+
5
+ def _discuss_channel_computation(env):
6
+ rating_last_discuss = (
7
+ env["discuss.channel"].with_context(active_test=False).search([])
8
+ )
9
+ rating_last_discuss._compute_rating_last_value()
10
+
11
+
12
+ @openupgrade.migrate()
13
+ def migrate(env, version):
14
+ _discuss_channel_computation(env)
@@ -0,0 +1,18 @@
1
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
2
+
3
+ from openupgradelib import openupgrade
4
+
5
+
6
+ @openupgrade.migrate()
7
+ def migrate(env, version):
8
+ openupgrade.load_data(env, "im_livechat", "17.0.1.0/noupdate_changes.xml")
9
+ openupgrade.delete_record_translations(
10
+ env.cr,
11
+ "im_livechat",
12
+ [
13
+ "livechat_email_template",
14
+ ],
15
+ )
16
+ openupgrade.delete_records_safely_by_xml_id(
17
+ env, ["im_livechat.im_livechat_rule_manager_read_all_mail_channel"]
18
+ )
@@ -0,0 +1,26 @@
1
+ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2
+ from openupgradelib import openupgrade
3
+
4
+
5
+ def _discuss_channel_create_column(env):
6
+ openupgrade.logged_query(
7
+ env.cr,
8
+ """
9
+ ALTER TABLE discuss_channel
10
+ ADD COLUMN IF NOT EXISTS rating_last_value NUMERIC;
11
+ """,
12
+ )
13
+
14
+
15
+ @openupgrade.migrate()
16
+ def migrate(env, version):
17
+ _discuss_channel_create_column(env)
18
+ # cannot use openupgrade.delete_sql_constraint_safely
19
+ openupgrade.logged_query(
20
+ env.cr,
21
+ """ALTER TABLE discuss_channel
22
+ DROP CONSTRAINT IF EXISTS mail_channel_livechat_operator_id""",
23
+ )
24
+ openupgrade.delete_records_safely_by_xml_id(
25
+ env, ["im_livechat.constraint_mail_channel_livechat_operator_id"]
26
+ )
@@ -0,0 +1,86 @@
1
+ ---Models in module 'im_livechat'---
2
+ # NOTHING TO DO
3
+
4
+ ---Fields in module 'im_livechat'---
5
+ im_livechat / chatbot.message / discuss_channel_id (many2one) : NEW relation: discuss.channel, required
6
+ im_livechat / chatbot.message / mail_channel_id (many2one) : DEL relation: mail.channel, required
7
+ im_livechat / discuss.channel / anonymous_name (char) : NEW
8
+ im_livechat / discuss.channel / channel_type (False) : NEW selection_keys: ['channel', 'chat', 'group', 'livechat'], mode: modify
9
+ im_livechat / discuss.channel / chatbot_current_step_id (many2one): NEW relation: chatbot.script.step
10
+ im_livechat / discuss.channel / chatbot_message_ids (one2many): NEW relation: chatbot.message
11
+ im_livechat / discuss.channel / country_id (many2one) : NEW relation: res.country
12
+ im_livechat / discuss.channel / livechat_active (boolean) : NEW
13
+ im_livechat / discuss.channel / livechat_channel_id (many2one): NEW relation: im_livechat.channel
14
+ im_livechat / discuss.channel / livechat_operator_id (many2one): NEW relation: res.partner
15
+ # NOTHING TO DO
16
+
17
+ im_livechat / discuss.channel / rating_last_value (float) : NEW isfunction: function, stored
18
+ # DONE create column in pre-migration and compute using orm in end-migration
19
+
20
+ im_livechat / im_livechat.channel / channel_ids (one2many) : relation is now 'discuss.channel' ('mail.channel') [nothing to do]
21
+ im_livechat / mail.channel / anonymous_name (char) : DEL
22
+ im_livechat / mail.channel / channel_type (False) : DEL selection_keys: ['channel', 'chat', 'group', 'livechat'], mode: modify
23
+ im_livechat / mail.channel / chatbot_current_step_id (many2one): DEL relation: chatbot.script.step
24
+ im_livechat / mail.channel / chatbot_message_ids (one2many): DEL relation: chatbot.message
25
+ im_livechat / mail.channel / country_id (many2one) : DEL relation: res.country
26
+ im_livechat / mail.channel / livechat_active (boolean) : DEL
27
+ im_livechat / mail.channel / livechat_channel_id (many2one): DEL relation: im_livechat.channel
28
+ im_livechat / mail.channel / livechat_operator_id (many2one): DEL relation: res.partner
29
+ im_livechat / mail.channel / rating_ids (one2many) : DEL relation: rating.rating
30
+ im_livechat / mail.channel / rating_last_value (float) : DEL
31
+ im_livechat / res.users / livechat_username (char) : not stored anymore
32
+ im_livechat / res.users / livechat_username (char) : now a function
33
+ im_livechat / res.users.settings / livechat_lang_ids (many2many) : NEW relation: res.lang
34
+ im_livechat / res.users.settings / livechat_username (char) : NEW
35
+ # NOTHING TO DO
36
+
37
+ ---XML records in module 'im_livechat'---
38
+ NEW ir.actions.act_window: im_livechat.discuss_channel_action
39
+ NEW ir.actions.act_window: im_livechat.discuss_channel_action_from_livechat_channel
40
+ DEL ir.actions.act_window: im_livechat.im_livechat_canned_response_action
41
+ DEL ir.actions.act_window: im_livechat.mail_channel_action
42
+ DEL ir.actions.act_window: im_livechat.mail_channel_action_from_livechat_channel
43
+ NEW ir.actions.act_window.view: im_livechat.discuss_channel_action_form
44
+ NEW ir.actions.act_window.view: im_livechat.discuss_channel_action_livechat_form
45
+ NEW ir.actions.act_window.view: im_livechat.discuss_channel_action_livechat_tree
46
+ NEW ir.actions.act_window.view: im_livechat.discuss_channel_action_tree
47
+ NEW ir.actions.act_window.view: im_livechat.rating_rating_action_livechat_view_tree
48
+ DEL ir.actions.act_window.view: im_livechat.mail_channel_action_form
49
+ DEL ir.actions.act_window.view: im_livechat.mail_channel_action_livechat_form
50
+ DEL ir.actions.act_window.view: im_livechat.mail_channel_action_livechat_tree
51
+ DEL ir.actions.act_window.view: im_livechat.mail_channel_action_tree
52
+ NEW ir.model.access: im_livechat.access_livechat_channel_employee
53
+ NEW ir.model.access: im_livechat.access_livechat_channel_portal
54
+ NEW ir.model.access: im_livechat.access_livechat_channel_public
55
+ NEW ir.model.access: im_livechat.access_livechat_channel_rule_employee
56
+ NEW ir.model.access: im_livechat.access_livechat_channel_rule_portal
57
+ NEW ir.model.access: im_livechat.access_livechat_channel_rule_public
58
+ DEL ir.model.access: im_livechat.access_chatbot_message_all
59
+ DEL ir.model.access: im_livechat.access_chatbot_script
60
+ DEL ir.model.access: im_livechat.access_chatbot_script_step
61
+ DEL ir.model.access: im_livechat.access_livechat_channel
62
+ DEL ir.model.access: im_livechat.access_livechat_channel_rule
63
+ # NOTHING TO DO
64
+
65
+ NEW ir.model.constraint: im_livechat.constraint_discuss_channel_livechat_operator_id
66
+ DEL ir.model.constraint: im_livechat.constraint_mail_channel_livechat_operator_id
67
+ # DONE: pre-migration: deleted safely old constraint (we don't have renaming mechanism)
68
+
69
+ NEW ir.rule: im_livechat.ir_rule_discuss_channel_group_im_livechat_group_manager (noupdate)
70
+ NEW ir.rule: im_livechat.ir_rule_discuss_channel_member_group_im_livechat_group_manager (noupdate)
71
+ # NOTHING TO DO
72
+
73
+ DEL ir.rule: im_livechat.im_livechat_rule_manager_read_all_mail_channel (noupdate)
74
+ # DONE: post-migration: deleted safely
75
+
76
+ NEW ir.ui.view: im_livechat.discuss_channel_view_form
77
+ NEW ir.ui.view: im_livechat.discuss_channel_view_search
78
+ NEW ir.ui.view: im_livechat.discuss_channel_view_tree
79
+ NEW ir.ui.view: im_livechat.qunit_embed_suite
80
+ NEW ir.ui.view: im_livechat.rating_rating_view_kanban
81
+ NEW ir.ui.view: im_livechat.rating_rating_view_tree
82
+ DEL ir.ui.view: im_livechat.im_livechat_canned_response_view_tree
83
+ DEL ir.ui.view: im_livechat.mail_channel_view_form
84
+ DEL ir.ui.view: im_livechat.mail_channel_view_search
85
+ DEL ir.ui.view: im_livechat.mail_channel_view_tree
86
+ # NOTHING TO DO
@@ -0,0 +1,5 @@
1
+ ---Models in module 'link_tracker'---
2
+ ---Fields in module 'link_tracker'---
3
+ ---XML records in module 'link_tracker'---
4
+ ---nothing has changed in this module--
5
+ # NOTHING TO DO
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade_scripts
3
- Version: 17.0.1.0.1.67
3
+ Version: 17.0.1.0.1.71
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo>=17.0a,<17.1dev
6
6
  Requires-Dist: openupgradelib
@@ -138,8 +138,12 @@ odoo/addons/openupgrade_scripts/scripts/hr_work_entry_holidays/17.0.1.0/upgrade_
138
138
  odoo/addons/openupgrade_scripts/scripts/iap/17.0.1.1/upgrade_analysis.txt,sha256=AvYS4Q0MRIMGV99LTKJdHZLv6qN8ItMupPDQCOLB8LQ,485
139
139
  odoo/addons/openupgrade_scripts/scripts/iap/17.0.1.1/upgrade_analysis_work.txt,sha256=R3HVGCvxYey0MBbdjElIel-86kMfaNCiEEzaSSk067U,535
140
140
  odoo/addons/openupgrade_scripts/scripts/iap_crm/17.0.1.0/upgrade_analysis.txt,sha256=Qxdh9V6HQd4HpmXsmxEMxN3Vu7y8Q6v0NWL3ZrRK1oA,144
141
+ odoo/addons/openupgrade_scripts/scripts/im_livechat/17.0.1.0/end-migration.py,sha256=ofbTgCec52Io5BU-VcF_zh4TPnO53Mf3fht2ad-EPd0,396
141
142
  odoo/addons/openupgrade_scripts/scripts/im_livechat/17.0.1.0/noupdate_changes.xml,sha256=-372YONcPdPXb_gO-f__yMRXgt8inppIexZSzTip_z0,6371
143
+ odoo/addons/openupgrade_scripts/scripts/im_livechat/17.0.1.0/post-migration.py,sha256=zfO1FqSmze9AJAHB72cDiwsLVDgUCDyVK-AQjaFrcz4,520
144
+ odoo/addons/openupgrade_scripts/scripts/im_livechat/17.0.1.0/pre-migration.py,sha256=xUtXDPVOGu0yq3KKXpX8LbO0l597sVZS6p2sgMbhF2Q,769
142
145
  odoo/addons/openupgrade_scripts/scripts/im_livechat/17.0.1.0/upgrade_analysis.txt,sha256=AcJuXqDSUAnuAn_BRAmBYSR5LGBaHuAG_4EgD7DEzsE,5505
146
+ odoo/addons/openupgrade_scripts/scripts/im_livechat/17.0.1.0/upgrade_analysis_work.txt,sha256=LAL_TN6fwt-zGSz2jJBdskiLk1TdRei5mfDidw08tCA,5813
143
147
  odoo/addons/openupgrade_scripts/scripts/im_livechat_mail_bot/17.0.1.0/upgrade_analysis.txt,sha256=xGhm2WEi7ACkVuwg3tKYA2ItfbahG5H9UENyFMPk78A,183
144
148
  odoo/addons/openupgrade_scripts/scripts/l10n_ae/17.0.1.0/upgrade_analysis.txt,sha256=FKJXw9sFEWcMxRmzINOn2o1q7FqzeNcRYW7zyFEmsBE,12145
145
149
  odoo/addons/openupgrade_scripts/scripts/l10n_anz_ubl_pint/17.0.1.0/upgrade_analysis.txt,sha256=BZQpE7I9djf7u4sZ5rUakSQICN2XjFfjsXRYCI3f7Lk,396
@@ -307,6 +311,7 @@ odoo/addons/openupgrade_scripts/scripts/l10n_vn_edi_viettel/17.0.1.0/upgrade_ana
307
311
  odoo/addons/openupgrade_scripts/scripts/l10n_za/17.0.1.0/upgrade_analysis.txt,sha256=jSHUTK6JelHn7KLHqsIOFMzU43P20lzvfgnm_H35ymg,5865
308
312
  odoo/addons/openupgrade_scripts/scripts/l10n_zm_account/17.0.1.0.0/upgrade_analysis.txt,sha256=f-cpEdre1AIw_17-8tOMHS4CB6IrMNjVvHe0HnYCqIU,6759
309
313
  odoo/addons/openupgrade_scripts/scripts/link_tracker/17.0.1.1/upgrade_analysis.txt,sha256=Ph-CuEBHU1WnRHswlXmC4YvE1LOo-0EpydbqIJ4VBSU,159
314
+ odoo/addons/openupgrade_scripts/scripts/link_tracker/17.0.1.1/upgrade_analysis_work.txt,sha256=HDJTQYlf0PpfRNSdGPao082n2s217eEL-0LUEC0qAs4,175
310
315
  odoo/addons/openupgrade_scripts/scripts/loyalty/17.0.1.0/upgrade_analysis.txt,sha256=jWV55rwgBPyCjXd0gEJnIEisKco9NECZ2seDTfB7iK0,689
311
316
  odoo/addons/openupgrade_scripts/scripts/lunch/17.0.1.0/upgrade_analysis.txt,sha256=tTe-ZlM47vbXf75E9H8TVoqH5QMiwIx5MeRcsX4SWeo,483
312
317
  odoo/addons/openupgrade_scripts/scripts/mail/17.0.1.15/noupdate_changes.xml,sha256=zwIjcc9ffaXXRJUMAVSlCuxpdj6CuOQxcoMMMr22f1M,580
@@ -534,7 +539,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
534
539
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
535
540
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
536
541
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
537
- odoo_addon_openupgrade_scripts-17.0.1.0.1.67.dist-info/METADATA,sha256=zfgj5vNHF23QZ1gqhJGOvPZFHH_VTKq83owEn9tLV1k,3785
538
- odoo_addon_openupgrade_scripts-17.0.1.0.1.67.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
539
- odoo_addon_openupgrade_scripts-17.0.1.0.1.67.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
540
- odoo_addon_openupgrade_scripts-17.0.1.0.1.67.dist-info/RECORD,,
542
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.71.dist-info/METADATA,sha256=bKaSHjGSG6TElhjSo8CrAFMdyFP1viP_MVAFL9Pkx7I,3785
543
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.71.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
544
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.71.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
545
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.71.dist-info/RECORD,,