odoo-addon-openupgrade-scripts 17.0.1.0.1.107__py3-none-any.whl → 17.0.1.0.1.109__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/purchase_stock/17.0.1.2/post-migration.py +22 -0
- odoo/addons/openupgrade_scripts/scripts/purchase_stock/17.0.1.2/upgrade_analysis_work.txt +23 -0
- odoo/addons/openupgrade_scripts/scripts/sale/17.0.1.2/post-migration.py +4 -8
- odoo/addons/openupgrade_scripts/scripts/sale/17.0.1.2/pre-migration.py +9 -0
- odoo/addons/openupgrade_scripts/scripts/sale/17.0.1.2/upgrade_analysis_work.txt +5 -2
- odoo/addons/openupgrade_scripts/scripts/sale/tests/test_sale_migration.py +1 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.107.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.109.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.107.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.109.dist-info}/RECORD +10 -7
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.107.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.109.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.107.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.109.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
# Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo)
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
|
+
|
4
|
+
from openupgradelib import openupgrade
|
5
|
+
|
6
|
+
|
7
|
+
def _purchase_stock_convert_created_purchase_line_id_m2o_to_m2m(env):
|
8
|
+
"""
|
9
|
+
Convert m2o to m2m in 'purchase.stock'
|
10
|
+
"""
|
11
|
+
openupgrade.m2o_to_x2m(
|
12
|
+
env.cr,
|
13
|
+
env["stock.move"],
|
14
|
+
"stock_move",
|
15
|
+
"created_purchase_line_ids",
|
16
|
+
"created_purchase_line_id",
|
17
|
+
)
|
18
|
+
|
19
|
+
|
20
|
+
@openupgrade.migrate()
|
21
|
+
def migrate(env, version):
|
22
|
+
_purchase_stock_convert_created_purchase_line_id_m2o_to_m2m(env)
|
@@ -0,0 +1,23 @@
|
|
1
|
+
---Models in module 'purchase_stock'---
|
2
|
+
---Fields in module 'purchase_stock'---
|
3
|
+
purchase_stock / product.category / property_account_creditor_price_difference_categ (many2one): previously in module purchase_price_diff
|
4
|
+
purchase_stock / product.product / property_account_creditor_price_difference (many2one): previously in module purchase_price_diff
|
5
|
+
purchase_stock / product.template / property_account_creditor_price_difference (many2one): previously in module purchase_price_diff
|
6
|
+
# NOTHING TO DO
|
7
|
+
|
8
|
+
purchase_stock / purchase.order.line / move_dest_ids (one2many) : table is now 'stock_move_created_purchase_line_rel' ('False')
|
9
|
+
purchase_stock / purchase.order.line / move_dest_ids (one2many) : type is now 'many2many' ('one2many')
|
10
|
+
purchase_stock / stock.move / created_purchase_line_id (many2one): DEL relation: purchase.order.line
|
11
|
+
purchase_stock / stock.move / created_purchase_line_ids (many2many): NEW relation: purchase.order.line
|
12
|
+
# DONE post-migration: convert from m2o to m2m
|
13
|
+
|
14
|
+
---XML records in module 'purchase_stock'---
|
15
|
+
NEW ir.ui.view: purchase_stock.product_template_form_view
|
16
|
+
NEW ir.ui.view: purchase_stock.product_view_kanban_catalog_purchase_only
|
17
|
+
NEW ir.ui.view: purchase_stock.stock_reorder_report_search_inherited_purchase_stock
|
18
|
+
NEW ir.ui.view: purchase_stock.view_category_property_form
|
19
|
+
NEW ir.ui.view: purchase_stock.view_product_replenish_form_inherit_stock
|
20
|
+
# NOTHING TO DO: new feature
|
21
|
+
|
22
|
+
DEL ir.ui.view: purchase_stock.purchase_report_product_product_replenishment
|
23
|
+
# NOTHING TO DO
|
@@ -1,24 +1,20 @@
|
|
1
1
|
# Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo)
|
2
|
+
# Copyright 2024 Holger Brunn
|
3
|
+
# Copyright 2025 Tecnativa - Pedro M. Baeza
|
2
4
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
5
|
|
4
6
|
from openupgradelib import openupgrade
|
5
7
|
|
6
8
|
|
7
9
|
def _sale_order_populate_locked_field(env):
|
8
|
-
"""
|
9
|
-
Set state of sale orders in state 'done' to 'sale'
|
10
|
-
Lock them if the the group sale.group_auto_done_setting
|
11
|
-
is inherited by the user group
|
12
|
-
"""
|
13
|
-
auto_done_group = env.ref("sale.group_auto_done_setting")
|
10
|
+
"""Set state of sale orders in state 'done' to 'sale' and lock them."""
|
14
11
|
openupgrade.logged_query(
|
15
12
|
env.cr,
|
16
13
|
"""
|
17
14
|
UPDATE sale_order
|
18
|
-
SET locked =
|
15
|
+
SET locked = True, state = 'sale'
|
19
16
|
WHERE state = 'done'
|
20
17
|
""",
|
21
|
-
(auto_done_group.users.ids,),
|
22
18
|
)
|
23
19
|
|
24
20
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Copyright 2025 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
|
+
@openupgrade.migrate()
|
8
|
+
def migrate(env, version):
|
9
|
+
openupgrade.copy_columns(env.cr, {"sale_order": [("state", None, None)]})
|
@@ -18,7 +18,7 @@ sale / res.company / sale_quotation_onboarding_state (selec
|
|
18
18
|
# NOTHING TO DO
|
19
19
|
|
20
20
|
sale / sale.order / locked (boolean) : NEW hasdefault: default
|
21
|
-
# DONE post-migration: set locked if
|
21
|
+
# DONE post-migration: set locked if state was done
|
22
22
|
|
23
23
|
sale / sale.order / activity_user_id (many2one) : not related anymore
|
24
24
|
sale / sale.order / activity_user_id (many2one) : now a function
|
@@ -29,8 +29,11 @@ sale / sale.order / journal_id (many2one) : NEW re
|
|
29
29
|
sale / sale.order / message_main_attachment_id (many2one): DEL relation: ir.attachment
|
30
30
|
sale / sale.order / prepayment_percent (float) : NEW hasdefault: compute
|
31
31
|
sale / sale.order / rating_ids (one2many) : NEW relation: rating.rating
|
32
|
+
# NOTHING TO DO
|
33
|
+
|
32
34
|
sale / sale.order / state (selection) : selection_keys is now '['cancel', 'draft', 'sale', 'sent']' ('['cancel', 'done', 'draft', 'sale', 'sent']')
|
33
|
-
# DONE
|
35
|
+
# DONE: pre-migration: copy 'state' field for preserving old values
|
36
|
+
# DONE: post-migration: map state 'done' to 'sale', lock as described above
|
34
37
|
|
35
38
|
sale / sale.order.line / price_reduce (float) : DEL
|
36
39
|
# NOTHING TO DO
|
@@ -7,4 +7,4 @@ from odoo.addons.openupgrade_framework import openupgrade_test
|
|
7
7
|
class TestSaleMigration(TransactionCase):
|
8
8
|
def test_sale_order_state(self):
|
9
9
|
self.assertEqual(self.env.ref("sale.sale_order_18").state, "sale")
|
10
|
-
self.
|
10
|
+
self.assertTrue(self.env.ref("sale.sale_order_18").locked)
|
@@ -447,7 +447,9 @@ odoo/addons/openupgrade_scripts/scripts/purchase_mrp/17.0.1.0/upgrade_analysis.t
|
|
447
447
|
odoo/addons/openupgrade_scripts/scripts/purchase_product_matrix/17.0.1.0/upgrade_analysis.txt,sha256=ziZfZQGATL_2VPdgw-7hgS7661nkDbbYuT_SgMrpFmw,192
|
448
448
|
odoo/addons/openupgrade_scripts/scripts/purchase_requisition/17.0.0.1/upgrade_analysis.txt,sha256=-3eCb_nikz-NG3FR7NH6RanmKPBFiTxMVuQXI-aNkcM,642
|
449
449
|
odoo/addons/openupgrade_scripts/scripts/purchase_requisition_stock/17.0.1.2/upgrade_analysis.txt,sha256=VBgWrgfN-tlD1isnEjx1DbRhTjvxqZIleJCKlwtjLNo,201
|
450
|
+
odoo/addons/openupgrade_scripts/scripts/purchase_stock/17.0.1.2/post-migration.py,sha256=mOOwKQVuvF2sKgt8ZXy9uZLy1T1c05a3h_1NLQzRLdE,599
|
450
451
|
odoo/addons/openupgrade_scripts/scripts/purchase_stock/17.0.1.2/upgrade_analysis.txt,sha256=ZOQeVbbvlXvWNaEqfZLu8YqO-fFwTA0otAahC_zsGSc,1159
|
452
|
+
odoo/addons/openupgrade_scripts/scripts/purchase_stock/17.0.1.2/upgrade_analysis_work.txt,sha256=VJnF5yVWxBRXS4RnCEEh89m1pUdRSdKZxzkotL2tFiA,1569
|
451
453
|
odoo/addons/openupgrade_scripts/scripts/rating/17.0.1.1/upgrade_analysis.txt,sha256=cTANEQNjoLgOX8Pq00i60pFdnveHqQ3r641__q41B9I,1959
|
452
454
|
odoo/addons/openupgrade_scripts/scripts/rating/17.0.1.1/upgrade_analysis_work.txt,sha256=AG_gRxWXjup776lKThpZ4499ojtMVej_7cT_1LN9xr0,1990
|
453
455
|
odoo/addons/openupgrade_scripts/scripts/repair/17.0.1.0/noupdate_changes.xml,sha256=SsODI46tUtKZGQdz1meM6VsGmT_udVIzdxrWu34fPEs,202
|
@@ -457,11 +459,12 @@ odoo/addons/openupgrade_scripts/scripts/resource/17.0.1.1/pre-migration.py,sha25
|
|
457
459
|
odoo/addons/openupgrade_scripts/scripts/resource/17.0.1.1/upgrade_analysis.txt,sha256=rvmI4wkqwRY0Mz3mI_oMf9DsqwKny69cgGNasFv6BpU,854
|
458
460
|
odoo/addons/openupgrade_scripts/scripts/resource/17.0.1.1/upgrade_analysis_work.txt,sha256=hnHgqLc_-gypgYn9cILPKiAyXPJgmhWjAtatUdkQRWY,1131
|
459
461
|
odoo/addons/openupgrade_scripts/scripts/sale/17.0.1.2/noupdate_changes.xml,sha256=wh7d2nRJLcvN16KYMDdTiNqRT0O8siPsNpKlyQGRNxc,13187
|
460
|
-
odoo/addons/openupgrade_scripts/scripts/sale/17.0.1.2/post-migration.py,sha256=
|
462
|
+
odoo/addons/openupgrade_scripts/scripts/sale/17.0.1.2/post-migration.py,sha256=1kHGd1xeNj-5xrXzVNDeWDKW4gFsqorVJjfIncz39bs,712
|
463
|
+
odoo/addons/openupgrade_scripts/scripts/sale/17.0.1.2/pre-migration.py,sha256=Q1_bLdd_P3zIiKIHNW3Bv733Cyt5Hc4VOCBGZTSnAvI,283
|
461
464
|
odoo/addons/openupgrade_scripts/scripts/sale/17.0.1.2/upgrade_analysis.txt,sha256=bzIP0uZgpiCqOmfzU1XVfmbi8wAwbA0OoNAAI2quN2w,6014
|
462
|
-
odoo/addons/openupgrade_scripts/scripts/sale/17.0.1.2/upgrade_analysis_work.txt,sha256=
|
465
|
+
odoo/addons/openupgrade_scripts/scripts/sale/17.0.1.2/upgrade_analysis_work.txt,sha256=8KQ2e1hDxrErrG98TZoujFfe-OAGin1R41qyLoSHYwo,6415
|
463
466
|
odoo/addons/openupgrade_scripts/scripts/sale/tests/data_sale_migration.py,sha256=p5paNBWcbuJOl5raSQnXA4jutW5FPJ4YMYok5NNi2os,160
|
464
|
-
odoo/addons/openupgrade_scripts/scripts/sale/tests/test_sale_migration.py,sha256=
|
467
|
+
odoo/addons/openupgrade_scripts/scripts/sale/tests/test_sale_migration.py,sha256=h3AYhkNRHUfkSONJFaQfNpmXlQzXqDYPm-acs7PL9jE,344
|
465
468
|
odoo/addons/openupgrade_scripts/scripts/sale_async_emails/17.0.1.0/upgrade_analysis.txt,sha256=JkvRgvp29pq_FGyqKSyInOfmQf2N9MCheOEXHc_BHfQ,361
|
466
469
|
odoo/addons/openupgrade_scripts/scripts/sale_crm/17.0.1.0/upgrade_analysis.txt,sha256=lv8jHV4r15aW7GmffXmW3R6DrZAoKEC60trv5mjtbdU,147
|
467
470
|
odoo/addons/openupgrade_scripts/scripts/sale_expense/17.0.1.0/upgrade_analysis.txt,sha256=fmL9ehU0qjB23ZWgU66K05YBEvF1kjLmbV3p28-CU3M,159
|
@@ -576,7 +579,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
|
|
576
579
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
577
580
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
578
581
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
|
579
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
580
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
581
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
582
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
582
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.109.dist-info/METADATA,sha256=Q0OeLqyTEVHKTUaHgLIhbMA3o9SDtLR8PAG0lA7VfhE,3786
|
583
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.109.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
584
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.109.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
585
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.109.dist-info/RECORD,,
|
File without changes
|