odoo-addon-openupgrade-scripts 15.0.1.0.0.546__py3-none-any.whl → 15.0.1.0.0.550__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.
@@ -170,13 +170,12 @@ def migration_to_mail_group(env):
170
170
  ("mail_channel_moderator_rel", "mail_group_moderator_rel"),
171
171
  ],
172
172
  )
173
- openupgrade.rename_columns(
173
+ openupgrade.logged_query(
174
174
  env.cr,
175
- {
176
- "mail_group_moderator_rel": [
177
- ("mail_channel_id", "mail_group_id"),
178
- ]
179
- },
175
+ """
176
+ ALTER TABLE mail_group_moderator_rel
177
+ ADD COLUMN mail_group_id integer
178
+ """,
180
179
  )
181
180
  # fill mail_group table
182
181
  sql.create_model_table(
@@ -234,7 +233,21 @@ def migration_to_mail_group(env):
234
233
  UPDATE mail_group_moderator_rel rel
235
234
  SET mail_group_id = mg.id
236
235
  FROM mail_group mg
237
- WHERE mg.old_channel_id = rel.mail_group_id""",
236
+ WHERE mg.old_channel_id = rel.mail_channel_id""",
237
+ )
238
+ openupgrade.logged_query(
239
+ env.cr,
240
+ """
241
+ ALTER TABLE mail_group_moderator_rel
242
+ DROP COLUMN mail_channel_id
243
+ """,
244
+ )
245
+ openupgrade.logged_query(
246
+ env.cr,
247
+ """
248
+ DELETE FROM mail_group_moderator_rel
249
+ WHERE mail_group_id IS NULL
250
+ """,
238
251
  )
239
252
  # fill mail_group_moderation.mail_group_id (field is required)
240
253
  openupgrade.logged_query(
@@ -0,0 +1,21 @@
1
+ # Copyright 2025 Tecnativa - Carlos Lopez
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+
4
+ from openupgradelib import openupgrade
5
+
6
+
7
+ @openupgrade.migrate()
8
+ def migrate(env, version):
9
+ openupgrade.load_data(env.cr, "repair", "15.0.1.0/noupdate_changes.xml")
10
+ openupgrade.delete_record_translations(
11
+ env.cr,
12
+ "repair",
13
+ ["mail_template_repair_quotation"],
14
+ )
15
+ openupgrade.map_values(
16
+ env.cr,
17
+ "state",
18
+ "state",
19
+ [("invoice_except", "2binvoiced")],
20
+ table="repair_order",
21
+ )
@@ -0,0 +1,14 @@
1
+ # Copyright 2025 Tecnativa - Carlos Lopez
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+
4
+ from openupgradelib import openupgrade
5
+
6
+
7
+ @openupgrade.migrate()
8
+ def migrate(env, version):
9
+ openupgrade.convert_field_to_html(
10
+ env.cr, "repair_order", "internal_notes", "internal_notes"
11
+ )
12
+ openupgrade.convert_field_to_html(
13
+ env.cr, "repair_order", "quotation_notes", "quotation_notes"
14
+ )
@@ -0,0 +1,25 @@
1
+ ---Models in module 'repair'---
2
+ ---Fields in module 'repair'---
3
+ repair / repair.order / _order : _order is now 'priority desc, create_date desc' ('create_date desc')
4
+ # NOTHING TO DO: the default value for priority is coherent and preserves the behavior of the previous version, so the order is unaltered
5
+
6
+ repair / repair.order / description (char) : NEW
7
+ repair / repair.order / sale_order_id (many2one) : NEW relation: sale.order
8
+ repair / repair.order / schedule_date (date) : NEW
9
+ # NOTHING TO DO: new fields for new feature
10
+
11
+ repair / repair.order / priority (selection) : NEW selection_keys: ['0', '1'], hasdefault: default
12
+ # NOTHING TO DO: new field for a new feature. The default value is coherent and preserves the behavior of the previous version
13
+
14
+ repair / repair.order / internal_notes (text) : type is now 'html' ('text')
15
+ repair / repair.order / quotation_notes (text) : type is now 'html' ('text')
16
+ # DONE: pre-migration: convert text to html
17
+
18
+ repair / repair.order / state (selection) : selection_keys is now '['2binvoiced', 'cancel', 'confirmed', 'done', 'draft', 'ready', 'under_repair']' ('['2binvoiced', 'cancel', 'confirmed', 'done', 'draft', 'invoice_except', 'ready', 'under_repair']')
19
+ # DONE: post-migration: Map value from invoice_except to 2binvoiced.
20
+
21
+ ---XML records in module 'repair'---
22
+ NEW ir.actions.act_window: repair.action_repair_move_lines
23
+ DEL ir.model.access: repair.access_stock_production_lot_user
24
+ NEW ir.ui.view: repair.stock_production_lot_view_form
25
+ # NOTHING TO DO: Handled by ORM
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade_scripts
3
- Version: 15.0.1.0.0.546
3
+ Version: 15.0.1.0.0.550
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)
@@ -409,7 +409,7 @@ odoo/addons/openupgrade_scripts/scripts/link_tracker/15.0.1.1/upgrade_analysis.t
409
409
  odoo/addons/openupgrade_scripts/scripts/lunch/15.0.1.0/upgrade_analysis.txt,sha256=YgvkxCZ8V959zAOfxf1dPzUga0vy3-1jSOAUcnkfPYI,6095
410
410
  odoo/addons/openupgrade_scripts/scripts/mail/15.0.1.5/noupdate_changes.xml,sha256=mSFqMrPDjZxwCYbmhe6exCyciL3rTu3w2KzWvShS-nc,1530
411
411
  odoo/addons/openupgrade_scripts/scripts/mail/15.0.1.5/post-migration.py,sha256=tzbQGOum8sL-EIOv24X7z7LsMgRE0qlKH1Xy8Hgp2WY,8676
412
- odoo/addons/openupgrade_scripts/scripts/mail/15.0.1.5/pre-migration.py,sha256=Y0cAjl_36IvB8n1fecSuFmXaryIyWrab0cvGWl_EjS8,10838
412
+ odoo/addons/openupgrade_scripts/scripts/mail/15.0.1.5/pre-migration.py,sha256=K0UNUNl3PAmUW9rv178d_8b5iML6AhzJ6eFrVuEIGbk,11134
413
413
  odoo/addons/openupgrade_scripts/scripts/mail/15.0.1.5/upgrade_analysis.txt,sha256=31oUo4dhCV2f9bS5_khq1Zpy86kMfjbdm6DzMJ6cqEQ,15672
414
414
  odoo/addons/openupgrade_scripts/scripts/mail/15.0.1.5/upgrade_analysis_work.txt,sha256=8Epm-t7TAcD5gYDOytEDOWEDWEsGJzGoYHBps-ESeWI,17944
415
415
  odoo/addons/openupgrade_scripts/scripts/mail_bot/15.0.1.2/upgrade_analysis.txt,sha256=HnwiaLBRalQvp2n-9ZWkFPKbwvVJSPlVbmjoH6jc3Pg,222
@@ -601,7 +601,10 @@ odoo/addons/openupgrade_scripts/scripts/rating/15.0.1.0/pre-migration.py,sha256=
601
601
  odoo/addons/openupgrade_scripts/scripts/rating/15.0.1.0/upgrade_analysis.txt,sha256=3Zjl03w3-ItvvI02a8N5OFrF4V3a3IBzuybeDVGoHYg,337
602
602
  odoo/addons/openupgrade_scripts/scripts/rating/15.0.1.0/upgrade_analysis_work.txt,sha256=4LxywIXJjk8d1fypRdB9mLrE4623zRC8zTV3xfLLLDs,524
603
603
  odoo/addons/openupgrade_scripts/scripts/repair/15.0.1.0/noupdate_changes.xml,sha256=tgqNerkSBObU9exuz1pLwlSAAEvTpo9ZXtzHveac2n4,1466
604
+ odoo/addons/openupgrade_scripts/scripts/repair/15.0.1.0/post-migration.py,sha256=GWk9k1Z0gCWc_4cKFsdUxUoim1ziRLclV_U_ZY5EGXQ,566
605
+ odoo/addons/openupgrade_scripts/scripts/repair/15.0.1.0/pre-migration.py,sha256=tj0t_MOfHdwxXAR15CeC2Ot4aP3gmJUZRDMJDACeUkY,429
604
606
  odoo/addons/openupgrade_scripts/scripts/repair/15.0.1.0/upgrade_analysis.txt,sha256=DYejKkBh8LL2lDIgr3hRxQHo5Q9wBbtlVRjOmfjdLXI,1283
607
+ odoo/addons/openupgrade_scripts/scripts/repair/15.0.1.0/upgrade_analysis_work.txt,sha256=up7VhcKlluTqX6OM1g80DzaPgpUx-2pt6oegeuFlYKY,1741
605
608
  odoo/addons/openupgrade_scripts/scripts/resource/15.0.1.1/upgrade_analysis.txt,sha256=XIxvG1E3gXqU2TBaoNPeSPxUO3t6wYp8AjQRGBEHOIY,574
606
609
  odoo/addons/openupgrade_scripts/scripts/resource/15.0.1.1/upgrade_analysis_work.txt,sha256=qFh_fQMMvdSmg7nXswe4oUswB64cDN5yVCuECORPRzo,607
607
610
  odoo/addons/openupgrade_scripts/scripts/sale/15.0.1.2/end-migration.py,sha256=5JTFx8e2AInoYLtmVJlPMz_0enITcIVEPPUaA-1WfW8,374
@@ -842,7 +845,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/15.0.1.0/upgrade_analysi
842
845
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
843
846
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
844
847
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=Q6Orf6ynZuFFVbDWUruBEsSY4uaFaTiVYvLYU1tcCnc,12678
845
- odoo_addon_openupgrade_scripts-15.0.1.0.0.546.dist-info/METADATA,sha256=UXYvvLGok3H9bQjRWLuDFahSmnuon4AdBDjiWPGPtFM,3758
846
- odoo_addon_openupgrade_scripts-15.0.1.0.0.546.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
847
- odoo_addon_openupgrade_scripts-15.0.1.0.0.546.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
848
- odoo_addon_openupgrade_scripts-15.0.1.0.0.546.dist-info/RECORD,,
848
+ odoo_addon_openupgrade_scripts-15.0.1.0.0.550.dist-info/METADATA,sha256=1IGhZNHfUrORIMr5Z30Kua5-G--X1m7v1u12MqgnjRI,3758
849
+ odoo_addon_openupgrade_scripts-15.0.1.0.0.550.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
850
+ odoo_addon_openupgrade_scripts-15.0.1.0.0.550.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
851
+ odoo_addon_openupgrade_scripts-15.0.1.0.0.550.dist-info/RECORD,,