odoo-addon-openupgrade-scripts 16.0.1.0.3.245__py3-none-any.whl → 16.0.1.0.3.246__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.
@@ -1,6 +1,5 @@
1
1
  # SPDX-FileCopyrightText: 2024 Tecnativa - Pedro M. Baeza
2
2
  # SPDX-License-Identifier: AGPL-3.0-or-later
3
- import uuid
4
3
 
5
4
  from openupgradelib import openupgrade
6
5
 
@@ -10,12 +9,9 @@ def _assign_pos_order_token(env):
10
9
  env,
11
10
  [("access_token", "pos.order", "pos_order", "char", False, "point_of_sale")],
12
11
  )
13
- env.cr.execute("SELECT id FROM pos_order")
14
- for row in env.cr.fetchall():
15
- env.cr.execute(
16
- "UPDATE pos_order SET access_token = %s WHERE id = %s",
17
- (str(uuid.uuid4()), row[0]),
18
- )
12
+ openupgrade.logged_query(
13
+ env.cr, "UPDATE pos_order SET access_token = gen_random_uuid();"
14
+ )
19
15
 
20
16
 
21
17
  @openupgrade.migrate()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade-scripts
3
- Version: 16.0.1.0.3.245
3
+ Version: 16.0.1.0.3.246
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)
@@ -434,7 +434,7 @@ odoo/addons/openupgrade_scripts/scripts/phone_validation/16.0.2.1/upgrade_analys
434
434
  odoo/addons/openupgrade_scripts/scripts/phone_validation/16.0.2.1/upgrade_analysis_work.txt,sha256=r6ZZxEY8udYvp3vj59JewSzKuX4SprcezFqGf4l-cys,187
435
435
  odoo/addons/openupgrade_scripts/scripts/point_of_sale/16.0.1.0.1/noupdate_changes.xml,sha256=72cxE-wbWTv5C1jIMM2zBz7RgOUm0D5fKV5rdRN4ICQ,329
436
436
  odoo/addons/openupgrade_scripts/scripts/point_of_sale/16.0.1.0.1/post-migration.py,sha256=yhRCcZPySDGJNcbd4INFr7LB4Q0TRw1at0iSPq8itus,1590
437
- odoo/addons/openupgrade_scripts/scripts/point_of_sale/16.0.1.0.1/pre-migration.py,sha256=pq-sXrtZ01ljacioPEPaFfujCDczfsuucC_ydvoU-BE,922
437
+ odoo/addons/openupgrade_scripts/scripts/point_of_sale/16.0.1.0.1/pre-migration.py,sha256=PKE1Y50CBHYrqcQMVRSoF4JnJbGeV04nzcMhZPzaElg,795
438
438
  odoo/addons/openupgrade_scripts/scripts/point_of_sale/16.0.1.0.1/upgrade_analysis.txt,sha256=SmD5PvuOBNzCU_SMlxq9U-o450u1DoepuqwkgJkqDDU,4018
439
439
  odoo/addons/openupgrade_scripts/scripts/point_of_sale/16.0.1.0.1/upgrade_analysis_work.txt,sha256=RUYXILEpVd4yoZxz03RVeexZw367GPdBH6Kk5e2vHHY,5841
440
440
  odoo/addons/openupgrade_scripts/scripts/portal/16.0.1.0/noupdate_changes.xml,sha256=JpZuTE89Qr2rlOoHatvRl82PI_NM5rh0pyiZS6XYBPs,6088
@@ -692,7 +692,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/16.0.1.0/upgrade_analysi
692
692
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
693
693
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
694
694
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=IOWtZdzr_jN_Dja8HYIfzIxrO8NE5pFgazKJtPsLKw0,12678
695
- odoo_addon_openupgrade_scripts-16.0.1.0.3.245.dist-info/METADATA,sha256=Y3TLU-JoIT96mzYcMGxubnH-hOEVCyJt98_47FOI7hM,3810
696
- odoo_addon_openupgrade_scripts-16.0.1.0.3.245.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
697
- odoo_addon_openupgrade_scripts-16.0.1.0.3.245.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
698
- odoo_addon_openupgrade_scripts-16.0.1.0.3.245.dist-info/RECORD,,
695
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.246.dist-info/METADATA,sha256=uZIDkLhbeo2lh8iNxdRRLbDeVzvYEDC_OPLTDC8pruc,3810
696
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.246.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
697
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.246.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
698
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.246.dist-info/RECORD,,