odoo-addon-openupgrade-scripts 16.0.1.0.3.186__py3-none-any.whl → 16.0.1.0.3.188__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,26 @@
1
+ from openupgradelib import openupgrade
2
+
3
+
4
+ def create_drive_employee(env):
5
+ openupgrade.logged_query(
6
+ env.cr,
7
+ """
8
+ ALTER TABLE fleet_vehicle_assignation_log
9
+ ADD IF NOT EXISTS driver_employee_id INT
10
+ """,
11
+ )
12
+
13
+ openupgrade.logged_query(
14
+ env.cr,
15
+ """
16
+ UPDATE fleet_vehicle_assignation_log log
17
+ SET driver_employee_id = emp.id
18
+ FROM hr_employee emp
19
+ WHERE log.driver_id IS NOT NULL and log.driver_id = emp.address_home_id
20
+ """,
21
+ )
22
+
23
+
24
+ @openupgrade.migrate()
25
+ def migrate(env, version):
26
+ create_drive_employee(env)
@@ -0,0 +1,13 @@
1
+ ---Models in module 'hr_fleet'---
2
+ ---Fields in module 'hr_fleet'---
3
+ hr_fleet / fleet.vehicle.assignation.log / driver_employee_id (many2one) : is now stored
4
+ hr_fleet / fleet.vehicle.assignation.log / driver_employee_id (many2one) : not related anymore
5
+
6
+ # DONE: fill data from old related field for now store current compute field in pre-migration
7
+
8
+ ---XML records in module 'hr_fleet'---
9
+ NEW ir.ui.view: hr_fleet.fleet_vehicle_assignation_log_employee_view_list
10
+ NEW ir.ui.view: hr_fleet.fleet_vehicle_view_tree_inherit_hr
11
+ NEW ir.ui.view: hr_fleet.view_attachment_kanban_inherit_hr
12
+
13
+ # NOTHING TO DO
@@ -0,0 +1,12 @@
1
+ ---Models in module 'sale_product_configurator'---
2
+ obsolete model sale.product.configurator [transient]
3
+
4
+ # NOTHING TO DO
5
+
6
+ ---Fields in module 'sale_product_configurator'---
7
+ ---XML records in module 'sale_product_configurator'---
8
+ DEL ir.actions.act_window: sale_product_configurator.sale_product_configurator_action
9
+ DEL ir.model.access: sale_product_configurator.access_sale_product_configurator
10
+ DEL ir.ui.view: sale_product_configurator.sale_product_configurator_view_form
11
+
12
+ # NOTHING TO DO
@@ -0,0 +1,57 @@
1
+ # Copyright 2023 Coop IT Easy SC
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+
4
+ from openupgradelib import openupgrade
5
+
6
+
7
+ def compute_sale_order_delivery_status(env):
8
+ openupgrade.add_fields(
9
+ env,
10
+ [
11
+ (
12
+ "delivery_status",
13
+ "sale.order",
14
+ False,
15
+ "selection",
16
+ False,
17
+ "sale_stock",
18
+ )
19
+ ],
20
+ )
21
+ openupgrade.logged_query(
22
+ env.cr,
23
+ """
24
+ with so_delivery_status as (
25
+ select
26
+ sale_id as id,
27
+ case
28
+ when
29
+ count(state) filter (
30
+ where state = 'cancel'
31
+ ) = count(state)
32
+ then null
33
+ when
34
+ count(state) filter (
35
+ where state not in ('done', 'cancel')
36
+ ) = 0
37
+ then 'full'
38
+ when
39
+ count(state) filter (where state = 'done') > 0
40
+ then 'partial'
41
+ else 'pending'
42
+ end as delivery_status
43
+ from stock_picking
44
+ group by 1
45
+ order by 1
46
+ )
47
+ update sale_order as so
48
+ set delivery_status = so_delivery_status.delivery_status
49
+ from so_delivery_status
50
+ where so_delivery_status.id = so.id;
51
+ """,
52
+ )
53
+
54
+
55
+ @openupgrade.migrate()
56
+ def migrate(env, version):
57
+ compute_sale_order_delivery_status(env)
@@ -0,0 +1,16 @@
1
+ ---Models in module 'sale_stock'---
2
+ ---Fields in module 'sale_stock'---
3
+ sale_stock / sale.order / delivery_status (selection) : NEW selection_keys: ['full', 'partial', 'pending'], isfunction: function, stored
4
+ # DONE: pre-migration: fast computed delivery_status
5
+ sale_stock / sale.order / incoterm_location (char) : NEW
6
+ sale_stock / sale.order.line / product_type (selection) : module is now 'sale' ('sale_stock')
7
+ sale_stock / sale.order.line / route_id (many2one) : relation is now 'stock.route' ('stock.location.route') [nothing to do]
8
+ sale_stock / stock.location.route / sale_selectable (boolean) : DEL
9
+ sale_stock / stock.route / sale_selectable (boolean) : NEW
10
+ # NOTHING TO DO
11
+ ---XML records in module 'sale_stock'---
12
+ DEL ir.ui.menu: sale_stock.menu_aftersale
13
+ DEL ir.ui.menu: sale_stock.menu_invoiced
14
+ DEL ir.ui.view: sale_stock.product_template_view_form_inherit_sale
15
+ DEL ir.ui.view: sale_stock.product_template_view_form_inherit_stock
16
+ # NOTHING TO DO
@@ -0,0 +1,5 @@
1
+ ---Models in module 'website_sale_product_configurator'---
2
+ ---Fields in module 'website_sale_product_configurator'---
3
+ website_sale_product_configurator / website / add_to_cart_action (False) : NEW selection_keys: ['force_dialog', 'go_to_cart', 'stay'], mode: modify
4
+ ---XML records in module 'website_sale_product_configurator'---
5
+ # Nothing to do.
@@ -0,0 +1,5 @@
1
+ ---Models in module 'website_sale_wishlist'---
2
+ ---Fields in module 'website_sale_wishlist'---
3
+ ---XML records in module 'website_sale_wishlist'---
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: 16.0.1.0.3.186
3
+ Version: 16.0.1.0.3.188
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)
@@ -149,7 +149,9 @@ odoo/addons/openupgrade_scripts/scripts/hr_expense/16.0.2.0/post-migration.py,sh
149
149
  odoo/addons/openupgrade_scripts/scripts/hr_expense/16.0.2.0/pre-migration.py,sha256=cxJDD2gBCL0Vd7i4vn4falwON0YOy67OsAbpMqor1lU,3801
150
150
  odoo/addons/openupgrade_scripts/scripts/hr_expense/16.0.2.0/upgrade_analysis.txt,sha256=jcxZTjMentbGt3vqdFaG_9NX9sb9KHtJyGfZlw6V4us,4453
151
151
  odoo/addons/openupgrade_scripts/scripts/hr_expense/16.0.2.0/upgrade_analysis_work.txt,sha256=fvIrFIWUu-yyxh7PoSfj5EuaXqmVntzftuov5P55fSw,4523
152
+ odoo/addons/openupgrade_scripts/scripts/hr_fleet/16.0.1.0/pre-migration.py,sha256=4_vFSdP47ErHAegARFOXpVM9r7i4qtEpGRffW91AtaQ,612
152
153
  odoo/addons/openupgrade_scripts/scripts/hr_fleet/16.0.1.0/upgrade_analysis.txt,sha256=3Z06g4YG8NTmD-qV6to7RhPJbqkUPhxqppzKVzunw0w,492
154
+ odoo/addons/openupgrade_scripts/scripts/hr_fleet/16.0.1.0/upgrade_analysis_work.txt,sha256=DjuTCAtNenkyRPdsAtaPEtRHa33ID79TKLUa5FL5pkM,605
153
155
  odoo/addons/openupgrade_scripts/scripts/hr_gamification/16.0.1.0/upgrade_analysis.txt,sha256=cMaEUAXfvHRW3vwIZMIrGROH5eDQjRAbqLkraqvEj-4,168
154
156
  odoo/addons/openupgrade_scripts/scripts/hr_gamification/16.0.1.0/upgrade_analysis_work.txt,sha256=3iBxaIQTm-sWLBp43p9C6sjlz2cEs0Bw8yf-0VOL0LM,185
155
157
  odoo/addons/openupgrade_scripts/scripts/hr_holidays/16.0.1.6/noupdate_changes.xml,sha256=5rRhvN1SNok_2zTE545S2unKRR87KPWVWHygEji5Azk,1900
@@ -504,6 +506,7 @@ odoo/addons/openupgrade_scripts/scripts/sale_margin/16.0.1.0/upgrade_analysis.tx
504
506
  odoo/addons/openupgrade_scripts/scripts/sale_margin/16.0.1.0/upgrade_analysis_work.txt,sha256=0o8DtglmfN8OunroS-GDSLYLJepChWHHPtsolFnYY_g,222
505
507
  odoo/addons/openupgrade_scripts/scripts/sale_mrp/16.0.1.0/upgrade_analysis.txt,sha256=_5EBLaQNdvlga2Gqg4-1455cezu74C8GvdFjKdKGRKY,175
506
508
  odoo/addons/openupgrade_scripts/scripts/sale_product_configurator/16.0.1.0/upgrade_analysis.txt,sha256=3wHhFk4rmZ3PurMy3ZlQ8vH8baRl0xNZ_9ofGp-3By4,455
509
+ odoo/addons/openupgrade_scripts/scripts/sale_product_configurator/16.0.1.0/upgrade_analysis_work.txt,sha256=4nkOQMjsk424G9xvtsCf0VjylrI-Mbky63dICQCZNLA,490
507
510
  odoo/addons/openupgrade_scripts/scripts/sale_product_matrix/16.0.1.0/upgrade_analysis.txt,sha256=-_99R6PnRJKHWr1zvrruy5m0RYjMSSK-QIlU_CNEJjk,180
508
511
  odoo/addons/openupgrade_scripts/scripts/sale_project/16.0.1.0/upgrade_analysis.txt,sha256=3_MabDi3INHUQI9b0qYLPEAgQ-FiMBVyz6cf3eoldlU,1618
509
512
  odoo/addons/openupgrade_scripts/scripts/sale_project/16.0.1.0/upgrade_analysis_work.txt,sha256=XzPdzthCMjGri6-BgxmrLPf1ctXo1i-k8VXdsc80xKg,1648
@@ -511,7 +514,9 @@ odoo/addons/openupgrade_scripts/scripts/sale_project_stock/16.0.1.0/upgrade_anal
511
514
  odoo/addons/openupgrade_scripts/scripts/sale_purchase/16.0.1.0/upgrade_analysis.txt,sha256=KICfQiqiyfFj1kfW0VXF0zyk8wnik_0APGVT0JdU9lY,361
512
515
  odoo/addons/openupgrade_scripts/scripts/sale_quotation_builder/16.0.1.0/noupdate_changes.xml,sha256=rgaGcEPiWrUftrz6BetgECgDqG3M3Nygj3XmTBVMvbo,3497
513
516
  odoo/addons/openupgrade_scripts/scripts/sale_quotation_builder/16.0.1.0/upgrade_analysis.txt,sha256=06ej-ps7VMDzYrQl7Hdd6uR_V_uhY2mtKQniOHUwmtA,351
517
+ odoo/addons/openupgrade_scripts/scripts/sale_stock/16.0.1.0/pre-migration.py,sha256=HokoL5uhqtcBIZFSGMGiH215GZGHnLqXs7q7ko5lKLc,1606
514
518
  odoo/addons/openupgrade_scripts/scripts/sale_stock/16.0.1.0/upgrade_analysis.txt,sha256=2pgVDl2UDhrMPdfMl6Yts6AJbXt28_q7I1OuE45E4-U,819
519
+ odoo/addons/openupgrade_scripts/scripts/sale_stock/16.0.1.0/upgrade_analysis_work.txt,sha256=RI9VqkV-SjxDl0wzmCQvDNlHjK9rMN29Kc6r-xtHc7A,1060
515
520
  odoo/addons/openupgrade_scripts/scripts/sale_timesheet/16.0.1.0/pre-migration.py,sha256=9xiwKatRFe6WrUE4jYhdS86LaN8EHslHJyiw2kUwJzw,1297
516
521
  odoo/addons/openupgrade_scripts/scripts/sale_timesheet/16.0.1.0/upgrade_analysis.txt,sha256=3ZAhGhCvAVd45pIpfNRtFbhbdv7dhcd6zdS4qhOCjUU,4247
517
522
  odoo/addons/openupgrade_scripts/scripts/sale_timesheet/16.0.1.0/upgrade_analysis_work.txt,sha256=_294_KUpIOVVhbiq_HLCpjXqOX-gXd_5zAwL5jzmKK0,4527
@@ -633,10 +638,12 @@ odoo/addons/openupgrade_scripts/scripts/website_sale_digital/16.0.0.1/upgrade_an
633
638
  odoo/addons/openupgrade_scripts/scripts/website_sale_loyalty/16.0.1.0/upgrade_analysis.txt,sha256=M753BVZ9F-ZP039qyWr2V8SMeehrt8iizS0T-cwNVmU,3308
634
639
  odoo/addons/openupgrade_scripts/scripts/website_sale_picking/16.0.1.0/upgrade_analysis.txt,sha256=TUeJygEuVPq6CRW7o-1WlNj-ytg3qMwvIrn1GSLjJK4,1075
635
640
  odoo/addons/openupgrade_scripts/scripts/website_sale_product_configurator/16.0.0.1/upgrade_analysis.txt,sha256=AoU15nW3TnH5g6D1uusr9M5j0rUdG0rsHxfwTgML3D4,350
641
+ odoo/addons/openupgrade_scripts/scripts/website_sale_product_configurator/16.0.0.1/upgrade_analysis_work.txt,sha256=L05xg6wofXTrLPbGNzGo8KLg0fNr_YdcUMWCGn6VQ8A,367
636
642
  odoo/addons/openupgrade_scripts/scripts/website_sale_slides/16.0.1.0/upgrade_analysis.txt,sha256=6Gl-9-udHVlwU8JWm5SnagoSi2uVGVy4igg32wX30c0,952
637
643
  odoo/addons/openupgrade_scripts/scripts/website_sale_stock/16.0.1.0/upgrade_analysis.txt,sha256=H9oYnZiyYkO8H9fuz638FK7b6XmIlVGTXB8_cklEteo,667
638
644
  odoo/addons/openupgrade_scripts/scripts/website_sale_stock_wishlist/16.0.1.0/upgrade_analysis.txt,sha256=Su-F698eC2SIY29887O6dZDUZxFp_ckwSXM5C9xKRCk,550
639
645
  odoo/addons/openupgrade_scripts/scripts/website_sale_wishlist/16.0.1.0/upgrade_analysis.txt,sha256=dkoH9dzqNnIfxVpZY78SGzUVWymC_Xt9Hb7bdKIjzww,186
646
+ odoo/addons/openupgrade_scripts/scripts/website_sale_wishlist/16.0.1.0/upgrade_analysis_work.txt,sha256=FeYUhmHUNRNohMlZL8X4_UtEaHWR9eyXZ_RZ6f-ljpU,202
640
647
  odoo/addons/openupgrade_scripts/scripts/website_slides/16.0.2.6/noupdate_changes.xml,sha256=lM3LtWWH2vPTtYgv8PTZFxdlXre5cheWRpxMOcIjnao,4027
641
648
  odoo/addons/openupgrade_scripts/scripts/website_slides/16.0.2.6/post-migration.py,sha256=_ppoN3BZKI73ribYBpJsnl3pETq3ChFYNRasv_Y-qPw,2335
642
649
  odoo/addons/openupgrade_scripts/scripts/website_slides/16.0.2.6/pre-migration.py,sha256=cdu5KZdfuzEP-lMs9B-_ZdkUkVzjehC6-wFUmBjGQ00,3009
@@ -649,7 +656,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/16.0.1.0/upgrade_analysi
649
656
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
650
657
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
651
658
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=IOWtZdzr_jN_Dja8HYIfzIxrO8NE5pFgazKJtPsLKw0,12678
652
- odoo_addon_openupgrade_scripts-16.0.1.0.3.186.dist-info/METADATA,sha256=YhUsbk6b48gW282WsRpshbscMhcsvz69NfH7cTxlSjk,3810
653
- odoo_addon_openupgrade_scripts-16.0.1.0.3.186.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
654
- odoo_addon_openupgrade_scripts-16.0.1.0.3.186.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
655
- odoo_addon_openupgrade_scripts-16.0.1.0.3.186.dist-info/RECORD,,
659
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.188.dist-info/METADATA,sha256=AwPnCo4DvA8JvHJfKfdf7aSDGEDPjmHgcAisRfmb1qA,3810
660
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.188.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
661
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.188.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
662
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.188.dist-info/RECORD,,