odoo-addon-openupgrade-scripts 16.0.1.0.3.200__py3-none-any.whl → 16.0.1.0.3.204__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.
- odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/pre-migration.py +2 -1
- odoo/addons/openupgrade_scripts/scripts/mrp/16.0.2.0/post-migration.py +23 -0
- odoo/addons/openupgrade_scripts/scripts/mrp/16.0.2.0/pre-migration.py +37 -0
- odoo/addons/openupgrade_scripts/scripts/mrp/16.0.2.0/upgrade_analysis_work.txt +102 -0
- odoo/addons/openupgrade_scripts/scripts/mrp_account/16.0.1.0/upgrade_analysis_work.txt +5 -0
- {odoo_addon_openupgrade_scripts-16.0.1.0.3.200.dist-info → odoo_addon_openupgrade_scripts-16.0.1.0.3.204.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-16.0.1.0.3.200.dist-info → odoo_addon_openupgrade_scripts-16.0.1.0.3.204.dist-info}/RECORD +9 -5
- {odoo_addon_openupgrade_scripts-16.0.1.0.3.200.dist-info → odoo_addon_openupgrade_scripts-16.0.1.0.3.204.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-16.0.1.0.3.200.dist-info → odoo_addon_openupgrade_scripts-16.0.1.0.3.204.dist-info}/top_level.txt +0 -0
@@ -132,7 +132,8 @@ def migrate(cr, version):
|
|
132
132
|
enable_coupon_sharing_within_entity(cr)
|
133
133
|
openupgrade.update_module_names(cr, renamed_modules.items())
|
134
134
|
openupgrade.update_module_names(cr, merged_modules.items(), merge_modules=True)
|
135
|
-
|
135
|
+
openupgrade.clean_transient_models(cr)
|
136
|
+
# restricting inherited views to groups isn't allowed anymore
|
136
137
|
cr.execute(
|
137
138
|
"DELETE FROM ir_ui_view_group_rel r "
|
138
139
|
"USING ir_ui_view v "
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Copyright 2024 Tecnativa - Pedro M. Baeza
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
|
+
|
4
|
+
from openupgradelib import openupgrade
|
5
|
+
|
6
|
+
|
7
|
+
def _link_work_orders(env):
|
8
|
+
"""Link work order sequentiation according old field next_work_order_id."""
|
9
|
+
openupgrade.logged_query(
|
10
|
+
env.cr,
|
11
|
+
"""
|
12
|
+
INSERT INTO mrp_workorder_dependencies_rel
|
13
|
+
(workorder_id, blocked_by_id)
|
14
|
+
SELECT next_work_order_id, id
|
15
|
+
FROM mrp_workorder
|
16
|
+
WHERE next_work_order_id IS NOT NULL
|
17
|
+
""",
|
18
|
+
)
|
19
|
+
|
20
|
+
|
21
|
+
@openupgrade.migrate()
|
22
|
+
def migrate(env, version):
|
23
|
+
_link_work_orders(env)
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Copyright 2024 Tecnativa - Pedro M. Baeza
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
|
+
|
4
|
+
from openupgradelib import openupgrade
|
5
|
+
|
6
|
+
_fields_renames = [
|
7
|
+
("mrp.workcenter", "mrp_workcenter", "capacity", "default_capacity"),
|
8
|
+
]
|
9
|
+
_fields_to_add = [
|
10
|
+
("manual_consumption", "stock.move", "stock_move", "boolean", False, "mrp", False),
|
11
|
+
]
|
12
|
+
|
13
|
+
|
14
|
+
def _fill_stock_move_manual_consumption(env):
|
15
|
+
"""Mimic the v15 behavior forcing the manual indication of consumption qtys for
|
16
|
+
components with lot/serial number tracking.
|
17
|
+
"""
|
18
|
+
openupgrade.add_fields(env, [_fields_to_add[0]])
|
19
|
+
openupgrade.logged_query(
|
20
|
+
env.cr,
|
21
|
+
"""
|
22
|
+
UPDATE stock_move sm
|
23
|
+
SET manual_consumption = True
|
24
|
+
FROM product_product pp
|
25
|
+
JOIN product_template pt ON pt.id = pp.product_tmpl_id
|
26
|
+
WHERE sm.state = 'draft'
|
27
|
+
AND sm.raw_material_production_id IS NOT NULL
|
28
|
+
AND pp.id = sm.product_id
|
29
|
+
AND pt.tracking <> 'none'
|
30
|
+
""",
|
31
|
+
)
|
32
|
+
|
33
|
+
|
34
|
+
@openupgrade.migrate()
|
35
|
+
def migrate(env, version):
|
36
|
+
openupgrade.rename_fields(env, _fields_renames)
|
37
|
+
_fill_stock_move_manual_consumption(env)
|
@@ -0,0 +1,102 @@
|
|
1
|
+
---Models in module 'mrp'---
|
2
|
+
new model mrp.production.split [transient]
|
3
|
+
new model mrp.production.split.line [transient]
|
4
|
+
new model mrp.production.split.multi [transient]
|
5
|
+
# NOTHING TO DO: Transient models
|
6
|
+
|
7
|
+
---Fields in module 'mrp'---
|
8
|
+
mrp / mrp.bom / allow_operation_dependencies (boolean): NEW
|
9
|
+
mrp / mrp.production / allow_workorder_dependencies (boolean): NEW
|
10
|
+
mrp / mrp.routing.workcenter / blocked_by_operation_ids (many2many): NEW relation: mrp.routing.workcenter
|
11
|
+
mrp / mrp.routing.workcenter / needed_by_operation_ids (many2many): NEW relation: mrp.routing.workcenter
|
12
|
+
NEW res.groups: mrp.group_mrp_workorder_dependencies
|
13
|
+
# NOTHING TO DO: Default value False + empty records act like previous v15, and the new feature of workorder dependencies can be activated with the group.
|
14
|
+
|
15
|
+
mrp / mrp.bom.line / manual_consumption (boolean) : NEW hasdefault: default
|
16
|
+
# NOTHING TO DO: The default value False preserves v15 behavior of computing automatically the consumed raw materials without specifically indicating them.
|
17
|
+
|
18
|
+
mrp / mrp.production / date_planned_finished (datetime): now a function
|
19
|
+
mrp / mrp.production / product_id (many2one) : now a function
|
20
|
+
# NOTHING TO DO: Fields are now computed writable
|
21
|
+
|
22
|
+
mrp / mrp.production / lot_producing_id (many2one) : relation is now 'stock.lot' ('stock.production.lot') [nothing to do]
|
23
|
+
mrp / mrp.unbuild / lot_id (many2one) : relation is now 'stock.lot' ('stock.production.lot') [nothing to do]
|
24
|
+
mrp / mrp.workorder / finished_lot_id (many2one) : relation is now 'stock.lot' ('stock.production.lot') [nothing to do]
|
25
|
+
mrp / stock.warehouse / pbm_route_id (many2one) : relation is now 'stock.route' ('stock.location.route') [nothing to do]
|
26
|
+
# NOTHING TO DO: Underlying renaming already handled in stock
|
27
|
+
|
28
|
+
mrp / mrp.production / unbuild_ids (one2many) : NEW relation: mrp.unbuild
|
29
|
+
# NOTHING TO DO: o2m for the inverse m2o mo_id existing in v15
|
30
|
+
|
31
|
+
mrp / mrp.workorder / blocked_by_workorder_ids (many2many): NEW relation: mrp.workorder
|
32
|
+
mrp / mrp.workorder / needed_by_workorder_ids (many2many): NEW relation: mrp.workorder
|
33
|
+
mrp / mrp.workorder / next_work_order_id (many2one) : DEL relation: mrp.workorder
|
34
|
+
# DONE: post-migration: Add m2m records (both m2m are the same with the columns reversed) following the field `next_work_order_id`
|
35
|
+
|
36
|
+
mrp / mrp.workcenter / capacity (float) : DEL
|
37
|
+
mrp / mrp.workcenter / default_capacity (float) : NEW hasdefault: default
|
38
|
+
# DONE: pre-migration: Renamed
|
39
|
+
|
40
|
+
mrp / mrp.workcenter / capacity_ids (one2many) : NEW relation: mrp.workcenter.capacity
|
41
|
+
new model mrp.workcenter.capacity
|
42
|
+
mrp / mrp.workcenter.capacity / capacity (float) : NEW hasdefault: default
|
43
|
+
mrp / mrp.workcenter.capacity / product_id (many2one) : NEW relation: product.product, required
|
44
|
+
mrp / mrp.workcenter.capacity / time_start (float) : NEW
|
45
|
+
mrp / mrp.workcenter.capacity / time_stop (float) : NEW
|
46
|
+
mrp / mrp.workcenter.capacity / workcenter_id (many2one) : NEW relation: mrp.workcenter, required
|
47
|
+
# NOTHING TO DO: New feature for defining specific capacities per product
|
48
|
+
|
49
|
+
mrp / mrp.workorder / qty_reported_from_previous_wo (float): NEW
|
50
|
+
# TODO: Previous version was not computing the total remaining quantity correctly on workorders. Leaving this field to 0 will preserve this bad behavior on existing MO backorders. This would be corrected computing partial quantities of all the existing backorders, but not done for now being very specific.
|
51
|
+
|
52
|
+
mrp / product.template / days_to_prepare_mo (float) : NEW hasdefault: default
|
53
|
+
mrp / stock.warehouse.orderpoint / manufacturing_visibility_days (float): NEW hasdefault: default
|
54
|
+
# NOTHING TO DO: New configuration field for indicating days to confirm in advance auto-generated MOs. Default value 0 is OK to preserve v15 behavior.
|
55
|
+
|
56
|
+
mrp / stock.move / manual_consumption (boolean) : NEW isfunction: function, stored
|
57
|
+
# DONE: pre-migration: Pre-create field and populate values when True
|
58
|
+
|
59
|
+
mrp / stock.move / order_finished_lot_id (many2one): NEW relation: stock.lot, isrelated: related, stored
|
60
|
+
# NOTHING TO DO: Related stored field populated efficiently by the ORM
|
61
|
+
|
62
|
+
mrp / stock.picking.type / use_auto_consume_components_lots (boolean): NEW
|
63
|
+
# NOTHING TO DO: New feature for auto-consuming components lots
|
64
|
+
|
65
|
+
---XML records in module 'mrp'---
|
66
|
+
NEW ir.actions.act_window: mrp.action_mrp_production_split
|
67
|
+
NEW ir.actions.act_window: mrp.action_mrp_production_split_multi
|
68
|
+
NEW ir.actions.client: mrp.mrp_reception_action
|
69
|
+
NEW ir.actions.report: mrp.action_report_workorder
|
70
|
+
DEL ir.actions.report: mrp.label_production_order
|
71
|
+
NEW ir.actions.server: mrp.action_production_order_merge
|
72
|
+
NEW ir.actions.server: mrp.action_production_order_split
|
73
|
+
DEL ir.actions.server: mrp.production_order_server_action
|
74
|
+
NEW ir.model.access: mrp.access_mrp_production_split
|
75
|
+
NEW ir.model.access: mrp.access_mrp_production_split_line
|
76
|
+
NEW ir.model.access: mrp.access_mrp_production_split_multi
|
77
|
+
NEW ir.model.access: mrp.access_mrp_workcenter_capacity_group_user
|
78
|
+
NEW ir.model.access: mrp.access_mrp_workcenter_capacity_manager
|
79
|
+
NEW ir.model.access: mrp.access_product_tag_mrp_manager
|
80
|
+
DEL ir.model.access: mrp.access_stock_location_mrp_worker
|
81
|
+
DEL ir.model.access: mrp.access_stock_move_mrp_manager
|
82
|
+
DEL ir.model.access: mrp.access_stock_move_mrp_worker
|
83
|
+
DEL ir.model.access: mrp.access_stock_picking_mrp_manager
|
84
|
+
DEL ir.model.access: mrp.access_stock_picking_mrp_worker
|
85
|
+
DEL ir.model.access: mrp.access_stock_production_lot_user
|
86
|
+
DEL ir.model.access: mrp.access_stock_warehouse
|
87
|
+
DEL ir.model.access: mrp.access_stock_warehouse_orderpoint_user
|
88
|
+
NEW ir.model.constraint: mrp.constraint_mrp_workcenter_capacity_positive_capacity
|
89
|
+
NEW ir.model.constraint: mrp.constraint_mrp_workcenter_capacity_unique_product
|
90
|
+
NEW ir.ui.view: mrp.report_mrp_production_components
|
91
|
+
NEW ir.ui.view: mrp.report_mrp_workorder
|
92
|
+
NEW ir.ui.view: mrp.view_mrp_production_split_form
|
93
|
+
NEW ir.ui.view: mrp.view_mrp_production_split_multi_form
|
94
|
+
DEL ir.ui.view: mrp.report_mrp_bom_line
|
95
|
+
DEL ir.ui.view: mrp.report_mrp_bom_pdf
|
96
|
+
DEL ir.ui.view: mrp.report_mrp_byproduct_line
|
97
|
+
DEL ir.ui.view: mrp.report_mrp_operation_line
|
98
|
+
DEL ir.ui.view: mrp.report_reception_report_label_mrp
|
99
|
+
# NOTHING TO DO: noupdate=0 internal stuff
|
100
|
+
|
101
|
+
NEW res.groups: mrp.group_mrp_reception_report
|
102
|
+
# NOTHING TO DO: New feature that can be activated to show "Allocation" report on MOs.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: odoo-addon-openupgrade-scripts
|
3
|
-
Version: 16.0.1.0.3.
|
3
|
+
Version: 16.0.1.0.3.204
|
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)
|
@@ -50,7 +50,7 @@ odoo/addons/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/upgra
|
|
50
50
|
odoo/addons/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/upgrade_analysis_work.txt,sha256=6HrGPs9TjNpnn6LBsW_809mevfIc6Nrz2WDgUfZwj2s,1249
|
51
51
|
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/noupdate_changes.xml,sha256=3JSJstFCXpOAjzDMxmtKAxV2FQRUpTJaf1_BIPkylpI,4331
|
52
52
|
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/post-migration.py,sha256=OU-gRxyx7crZ6IpuG-UuGgc2sVPudHE-vhGO6ZwCL8c,457
|
53
|
-
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/pre-migration.py,sha256=
|
53
|
+
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/pre-migration.py,sha256=g7OnLymHFFNFx6ElwweHt1g3hNsmNul1DDpTsNtyWEM,5642
|
54
54
|
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/upgrade_analysis.txt,sha256=fl7Gv0YVX243NtcDX_o-d40AHSEG2Hap1lA0oHjKGHk,11206
|
55
55
|
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/upgrade_analysis_work.txt,sha256=eyd3tF1ctvWY6b9cPULRC9-KPKyKXolXVnE6Re2-nKw,11387
|
56
56
|
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/upgrade_general_log.txt,sha256=N3lzm8q5B00VVMwzL3CCX7HZIMx0bLi1Be9M186yCpc,17304
|
@@ -366,8 +366,12 @@ odoo/addons/openupgrade_scripts/scripts/membership/16.0.1.0/upgrade_analysis_wor
|
|
366
366
|
odoo/addons/openupgrade_scripts/scripts/microsoft_account/16.0.1.0/upgrade_analysis.txt,sha256=A-hAfz4jaf1_-Uw2-6JP4inCGDe6LXPvVvXb7Dk9Nyc,174
|
367
367
|
odoo/addons/openupgrade_scripts/scripts/microsoft_calendar/16.0.1.0/upgrade_analysis.txt,sha256=GEvJ40GxiaZFblKUEv5n83Svpb2n9Z_qHAl0cYJBRTY,177
|
368
368
|
odoo/addons/openupgrade_scripts/scripts/microsoft_outlook/16.0.1.1/upgrade_analysis.txt,sha256=8-8kmoJvpDNDPgvZ_prT_oQkncsu69G1KaWE39vQp7w,756
|
369
|
+
odoo/addons/openupgrade_scripts/scripts/mrp/16.0.2.0/post-migration.py,sha256=G1H22HnxlcXCgQLJEI8-Yt5GMPUIK6LoZFvlBKrM0HU,618
|
370
|
+
odoo/addons/openupgrade_scripts/scripts/mrp/16.0.2.0/pre-migration.py,sha256=-NCHIW1rVfnjwUDY171T-kFCHl7BdfHtQW3NLJ8Qqc0,1155
|
369
371
|
odoo/addons/openupgrade_scripts/scripts/mrp/16.0.2.0/upgrade_analysis.txt,sha256=VBPemDVujxvXrCTVj11v06ux4uaOXrCcTGTvcGw4Uzc,5266
|
372
|
+
odoo/addons/openupgrade_scripts/scripts/mrp/16.0.2.0/upgrade_analysis_work.txt,sha256=iAkiZzkI26ILr1yHOG1MTZskdSisJkLWckAUZLU0zDo,6830
|
370
373
|
odoo/addons/openupgrade_scripts/scripts/mrp_account/16.0.1.0/upgrade_analysis.txt,sha256=C7nHn8HhepGWKYlP1CJryKN2Ns8EZnOCELOghGHaFSo,178
|
374
|
+
odoo/addons/openupgrade_scripts/scripts/mrp_account/16.0.1.0/upgrade_analysis_work.txt,sha256=gM6_cLieBSfnHqWV6fasgcKlRRRri5Gox0T5MBs8sa8,194
|
371
375
|
odoo/addons/openupgrade_scripts/scripts/mrp_landed_costs/16.0.1.0/upgrade_analysis.txt,sha256=5nXyL4HwISqtYoWtiWaRdUNUoUOIK0JpvbyhG2vN-qo,171
|
372
376
|
odoo/addons/openupgrade_scripts/scripts/mrp_subcontracting/16.0.0.1/upgrade_analysis.txt,sha256=67c4xoxyuW--aR5Mt5tXag43PXBHL8p_Gew1PDtYIow,4262
|
373
377
|
odoo/addons/openupgrade_scripts/scripts/mrp_subcontracting_account/16.0.0.1/upgrade_analysis.txt,sha256=kAMSLasbj-lBcE1elddNFYfBrLJCWIUvOxxbwJdmDng,501
|
@@ -664,7 +668,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/16.0.1.0/upgrade_analysi
|
|
664
668
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
665
669
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
666
670
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=IOWtZdzr_jN_Dja8HYIfzIxrO8NE5pFgazKJtPsLKw0,12678
|
667
|
-
odoo_addon_openupgrade_scripts-16.0.1.0.3.
|
668
|
-
odoo_addon_openupgrade_scripts-16.0.1.0.3.
|
669
|
-
odoo_addon_openupgrade_scripts-16.0.1.0.3.
|
670
|
-
odoo_addon_openupgrade_scripts-16.0.1.0.3.
|
671
|
+
odoo_addon_openupgrade_scripts-16.0.1.0.3.204.dist-info/METADATA,sha256=rQIYGvwwVUtqJ3mMXe1u_vv1W89QHHGJVR-haY4DIR0,3810
|
672
|
+
odoo_addon_openupgrade_scripts-16.0.1.0.3.204.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
673
|
+
odoo_addon_openupgrade_scripts-16.0.1.0.3.204.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
674
|
+
odoo_addon_openupgrade_scripts-16.0.1.0.3.204.dist-info/RECORD,,
|
File without changes
|