odoo-addon-openupgrade-scripts 17.0.1.0.1.263__py3-none-any.whl → 17.0.1.0.1.269__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/apriori.py +1 -0
- odoo/addons/openupgrade_scripts/scripts/google_calendar/17.0.1.0/upgrade_analysis_work.txt +6 -0
- odoo/addons/openupgrade_scripts/scripts/mrp_account/17.0.1.0/post-migration.py +67 -0
- odoo/addons/openupgrade_scripts/scripts/mrp_account/17.0.1.0/pre-migration.py +15 -0
- odoo/addons/openupgrade_scripts/scripts/mrp_account/17.0.1.0/upgrade_analysis_work.txt +58 -0
- odoo/addons/openupgrade_scripts/scripts/sale_expense/17.0.1.0/upgrade_analysis_work.txt +5 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.263.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.269.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.263.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.269.dist-info}/RECORD +10 -5
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.263.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.269.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.263.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.269.dist-info}/top_level.txt +0 -0
@@ -31,6 +31,7 @@ merged_modules = {
|
|
31
31
|
"pos_daily_sales_reports": "point_of_sale",
|
32
32
|
"pos_epson_printer_restaurant": "point_of_sale",
|
33
33
|
"purchase_price_diff": "purchase_stock",
|
34
|
+
"spreadsheet_dashboard_sale_expense": "spreadsheet_dashboard_hr_expense",
|
34
35
|
"web_kanban_gauge": "web",
|
35
36
|
"website_event_crm_questions": "website_event_crm",
|
36
37
|
"website_event_questions": "website_event",
|
@@ -0,0 +1,6 @@
|
|
1
|
+
---Models in module 'google_calendar'---
|
2
|
+
---Fields in module 'google_calendar'---
|
3
|
+
google_calendar / calendar.event / guests_readonly (boolean) : NEW hasdefault: default
|
4
|
+
google_calendar / calendar.event / videocall_source (False) : NEW selection_keys: ['custom', 'discuss', 'google_meet'], mode: modify
|
5
|
+
# NOTHING TO DO: new feature
|
6
|
+
---XML records in module 'google_calendar'---
|
@@ -0,0 +1,67 @@
|
|
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
|
+
def _fill_account_analytic_account_mrp_bom_rel(env):
|
8
|
+
openupgrade.logged_query(
|
9
|
+
env.cr,
|
10
|
+
"""
|
11
|
+
INSERT INTO account_analytic_account_mrp_bom_rel
|
12
|
+
(mrp_bom_id, account_analytic_account_id)
|
13
|
+
SELECT mb.id, SUBSTRING(ip.value_reference, 26)::int
|
14
|
+
FROM mrp_bom mb
|
15
|
+
JOIN ir_model_fields imf
|
16
|
+
ON imf.model = 'mrp.bom' AND imf.name = 'analytic_account_id'
|
17
|
+
JOIN ir_property ip
|
18
|
+
ON ip.fields_id = imf.id AND ip.res_id = 'mrp.bom,' || mb.id::varchar
|
19
|
+
""",
|
20
|
+
)
|
21
|
+
|
22
|
+
|
23
|
+
def _fill_account_analytic_account_mrp_production_rel(env):
|
24
|
+
openupgrade.logged_query(
|
25
|
+
env.cr,
|
26
|
+
"""
|
27
|
+
INSERT INTO account_analytic_account_mrp_production_rel
|
28
|
+
(mrp_production_id, account_analytic_account_id)
|
29
|
+
SELECT id, analytic_account_id
|
30
|
+
FROM mrp_production
|
31
|
+
WHERE analytic_account_id IS NOT NULL
|
32
|
+
""",
|
33
|
+
)
|
34
|
+
|
35
|
+
|
36
|
+
def _fill_account_analytic_account_mrp_workcenter_rel(env):
|
37
|
+
openupgrade.logged_query(
|
38
|
+
env.cr,
|
39
|
+
"""
|
40
|
+
INSERT INTO account_analytic_account_mrp_workcenter_rel
|
41
|
+
(mrp_workcenter_id, account_analytic_account_id)
|
42
|
+
SELECT id, costs_hour_account_id
|
43
|
+
FROM mrp_workcenter
|
44
|
+
WHERE costs_hour_account_id IS NOT NULL
|
45
|
+
""",
|
46
|
+
)
|
47
|
+
|
48
|
+
|
49
|
+
@openupgrade.migrate()
|
50
|
+
def migrate(env, version):
|
51
|
+
_fill_account_analytic_account_mrp_bom_rel(env)
|
52
|
+
_fill_account_analytic_account_mrp_production_rel(env)
|
53
|
+
_fill_account_analytic_account_mrp_workcenter_rel(env)
|
54
|
+
openupgrade.m2o_to_x2m(
|
55
|
+
env.cr,
|
56
|
+
env["mrp.workorder"],
|
57
|
+
"mrp_workorder",
|
58
|
+
"mo_analytic_account_line_ids",
|
59
|
+
"mo_analytic_account_line_id",
|
60
|
+
)
|
61
|
+
openupgrade.m2o_to_x2m(
|
62
|
+
env.cr,
|
63
|
+
env["mrp.workorder"],
|
64
|
+
"mrp_workorder",
|
65
|
+
"wc_analytic_account_line_ids",
|
66
|
+
"wc_analytic_account_line_id",
|
67
|
+
)
|
@@ -0,0 +1,15 @@
|
|
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, openupgrade_160
|
5
|
+
|
6
|
+
|
7
|
+
@openupgrade.migrate()
|
8
|
+
def migrate(env, version):
|
9
|
+
openupgrade_160.fill_analytic_distribution(env, "mrp_production", m2m_rel=False)
|
10
|
+
openupgrade_160.fill_analytic_distribution(
|
11
|
+
env,
|
12
|
+
"mrp_workcenter",
|
13
|
+
m2m_rel=False,
|
14
|
+
analytic_account_column="costs_hour_account_id",
|
15
|
+
)
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---Models in module 'mrp_account'---
|
2
|
+
---Fields in module 'mrp_account'---
|
3
|
+
mrp_account / account.analytic.account / bom_ids (one2many) : table is now 'account_analytic_account_mrp_bom_rel' ('False')
|
4
|
+
mrp_account / account.analytic.account / bom_ids (one2many) : type is now 'many2many' ('one2many')
|
5
|
+
mrp_account / mrp.bom / analytic_account_id (many2one): DEL relation: account.analytic.account
|
6
|
+
# DONE: post-migration: Fill the m2m table with the old column analytic_account_id
|
7
|
+
|
8
|
+
mrp_account / account.analytic.account / production_ids (one2many) : table is now 'account_analytic_account_mrp_production_rel' ('False')
|
9
|
+
mrp_account / account.analytic.account / production_ids (one2many) : type is now 'many2many' ('one2many')
|
10
|
+
mrp_account / mrp.production / analytic_account_ids (many2many): NEW relation: account.analytic.account, isfunction: function, stored
|
11
|
+
# DONE: post-migration: Fill the m2m table with the old column analytic_account_id
|
12
|
+
|
13
|
+
mrp_account / account.analytic.account / workcenter_ids (one2many) : table is now 'account_analytic_account_mrp_workcenter_rel' ('False')
|
14
|
+
mrp_account / account.analytic.account / workcenter_ids (one2many) : type is now 'many2many' ('one2many')
|
15
|
+
mrp_account / mrp.workcenter / costs_hour_account_ids (many2many): NEW relation: account.analytic.account, isfunction: function, stored
|
16
|
+
# DONE: post-migration: Fill the m2m table with the old column costs_hour_account_id
|
17
|
+
|
18
|
+
mrp_account / account.analytic.applicability / business_domain (False) : NEW selection_keys: ['bill', 'expense', 'general', 'invoice', 'manufacturing_order', 'purchase_order'], mode: modify
|
19
|
+
# NOTHING TO DO: New feature for auto-apply analytic distributions to the manufacturing orders
|
20
|
+
|
21
|
+
mrp_account / mrp.bom / analytic_distribution_search (json): NEW
|
22
|
+
mrp_account / mrp.bom / analytic_distribution_text (text): NEW
|
23
|
+
mrp_account / mrp.production / analytic_distribution_search (json): NEW
|
24
|
+
mrp_account / mrp.workcenter / analytic_distribution_search (json): NEW
|
25
|
+
# NOTHING TO DO: Non stored fields coming from the mixin
|
26
|
+
|
27
|
+
mrp_account / mrp.bom / analytic_precision (integer) : NEW hasdefault: default
|
28
|
+
mrp_account / mrp.production / analytic_precision (integer) : NEW hasdefault: default
|
29
|
+
mrp_account / mrp.workcenter / analytic_precision (integer) : NEW hasdefault: default
|
30
|
+
# NOTHING TO DO: Default value from mixin seems OK.
|
31
|
+
|
32
|
+
mrp_account / mrp.production / analytic_account_id (many2one): DEL relation: account.analytic.account
|
33
|
+
mrp_account / mrp.production / analytic_distribution (json) : NEW hasdefault: compute
|
34
|
+
# DONE: pre-migration: Convert analytic account to analytic distribution
|
35
|
+
|
36
|
+
mrp_account / mrp.workcenter / costs_hour_account_id (many2one): DEL relation: account.analytic.account
|
37
|
+
mrp_account / mrp.workcenter / analytic_distribution (json) : NEW hasdefault: compute
|
38
|
+
# DONE: pre-migration: Convert analytic account to analytic distribution
|
39
|
+
|
40
|
+
mrp_account / mrp.workcenter.productivity / cost_already_recorded (boolean): DEL
|
41
|
+
# NOTHING TO DO: Technical field that was used for filtering recorded times, but it's no longer needed (and that was an ugly patch)
|
42
|
+
|
43
|
+
mrp_account / mrp.workorder / mo_analytic_account_line_id (many2one): DEL relation: account.analytic.line
|
44
|
+
mrp_account / mrp.workorder / mo_analytic_account_line_ids (many2many): NEW relation: account.analytic.line
|
45
|
+
# DONE: post-migration: Convert m2o to m2m
|
46
|
+
|
47
|
+
mrp_account / mrp.workorder / wc_analytic_account_line_id (many2one): DEL relation: account.analytic.line
|
48
|
+
mrp_account / mrp.workorder / wc_analytic_account_line_ids (many2many): NEW relation: account.analytic.line
|
49
|
+
# DONE: post-migration: Convert m2o to m2m
|
50
|
+
|
51
|
+
mrp_account / product.category / property_stock_account_production_cost_id (many2one): NEW relation: account.account
|
52
|
+
# NOTHING TO DO: new possibility of granular stock accounting by produt category
|
53
|
+
|
54
|
+
---XML records in module 'mrp_account'---
|
55
|
+
NEW ir.actions.report: mrp_account.wip_report
|
56
|
+
NEW ir.ui.view: mrp_account.report_wip
|
57
|
+
NEW ir.ui.view: mrp_account.view_category_property_form
|
58
|
+
# NOTHING TO DO: ir noupdate=0 stuff
|
@@ -1,7 +1,7 @@
|
|
1
1
|
odoo/addons/openupgrade_scripts/README.rst,sha256=F-NgZfCSC-In2HctZruRu5RXLtEBFegzZYW5KpobcWU,3182
|
2
2
|
odoo/addons/openupgrade_scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
odoo/addons/openupgrade_scripts/__manifest__.py,sha256=7Yx2vwKl2vEHnUbDuuTprHLg2oQrKQMkpWEfyFneA0Q,614
|
4
|
-
odoo/addons/openupgrade_scripts/apriori.py,sha256=
|
4
|
+
odoo/addons/openupgrade_scripts/apriori.py,sha256=mbNuWA21LwVBeTyOg8xpXQ0sdr4oxoCbT30Gx8vxw90,2913
|
5
5
|
odoo/addons/openupgrade_scripts/readme/CONFIGURE.md,sha256=rnx8ADTYzVUB93PIG3Lib0iWBrphSfVRs6RMikklf3M,238
|
6
6
|
odoo/addons/openupgrade_scripts/readme/DESCRIPTION.md,sha256=HPjPs_KluLFMYXPaJcnoneY8BAh-XPwEAP71I7VTTbo,86
|
7
7
|
odoo/addons/openupgrade_scripts/readme/INSTALL.md,sha256=NDKVZRv0J8BTqcSTD7JwUXL_AY-cDJoegn5IUTbEOFk,113
|
@@ -137,6 +137,7 @@ odoo/addons/openupgrade_scripts/scripts/gamification/17.0.1.0/upgrade_analysis_w
|
|
137
137
|
odoo/addons/openupgrade_scripts/scripts/google_account/17.0.1.0/upgrade_analysis.txt,sha256=hiDG-xTUfbSEAoh1Of3lwHn5UyurLiFn_7cWUcr_MG8,165
|
138
138
|
odoo/addons/openupgrade_scripts/scripts/google_account/17.0.1.0/upgrade_analysis_work.txt,sha256=LzmC75DLUxB2zHGC1TkWlBRmYvbv2PspPVSH2zHz1KA,221
|
139
139
|
odoo/addons/openupgrade_scripts/scripts/google_calendar/17.0.1.0/upgrade_analysis.txt,sha256=nQfV_h_moxZ00umo8nRUiUoJaWiASy-cflfLoTDQBIE,377
|
140
|
+
odoo/addons/openupgrade_scripts/scripts/google_calendar/17.0.1.0/upgrade_analysis_work.txt,sha256=66BPmi-SmEcnAVDmlLEftHSHBInXkVx71QH676AGEi8,406
|
140
141
|
odoo/addons/openupgrade_scripts/scripts/google_gmail/17.0.1.2/upgrade_analysis.txt,sha256=az3DyzT1W7a0qBw78ZDiO5mC3K2ESONVyPJwtakQgIU,296
|
141
142
|
odoo/addons/openupgrade_scripts/scripts/google_gmail/17.0.1.2/upgrade_analysis_work.txt,sha256=tX0LBNEJlJYsiyAa1lGRVgFgFOBh1U8acpkMI8qo6nA,359
|
142
143
|
odoo/addons/openupgrade_scripts/scripts/hr/17.0.1.1/noupdate_changes.xml,sha256=3rM2MOVM3CYPWAqDknVf_qOwifBhfjjUPFFZWQdmMTI,1792
|
@@ -427,7 +428,10 @@ odoo/addons/openupgrade_scripts/scripts/mrp/17.0.2.0/post-migration.py,sha256=Iu
|
|
427
428
|
odoo/addons/openupgrade_scripts/scripts/mrp/17.0.2.0/pre-migration.py,sha256=JaUsMlvKGAUoidqpntY80sbkAMEmV3Tyyjuhl5n9V3Q,1486
|
428
429
|
odoo/addons/openupgrade_scripts/scripts/mrp/17.0.2.0/upgrade_analysis.txt,sha256=HYkqQOIk-ALT56-8qWXDsBYg_m4O_QxWVbIj5jTMaok,5658
|
429
430
|
odoo/addons/openupgrade_scripts/scripts/mrp/17.0.2.0/upgrade_analysis_work.txt,sha256=k8KYkW3lHY5Lc8iEhYVQBonBkmGGDZjEw0zGEDlFqZQ,6890
|
431
|
+
odoo/addons/openupgrade_scripts/scripts/mrp_account/17.0.1.0/post-migration.py,sha256=7kP1NhitJzIJebK7Wx9J3dije4lqDFc_TvkhmSNpI2Y,2034
|
432
|
+
odoo/addons/openupgrade_scripts/scripts/mrp_account/17.0.1.0/pre-migration.py,sha256=sBnunlGN6yScQuZA--FP8NgMDqQtLbF1pP7X6kHWyIY,480
|
430
433
|
odoo/addons/openupgrade_scripts/scripts/mrp_account/17.0.1.0/upgrade_analysis.txt,sha256=skwQ5fex7b4rCA-ybCPnM2OoirPpiArMDM6BLt8jN3Q,3346
|
434
|
+
odoo/addons/openupgrade_scripts/scripts/mrp_account/17.0.1.0/upgrade_analysis_work.txt,sha256=cH2B0PS6pn08EmqLMy6667qjWyucm0-LtQK7nnBwhKc,4295
|
431
435
|
odoo/addons/openupgrade_scripts/scripts/mrp_landed_costs/17.0.1.0/upgrade_analysis.txt,sha256=5nXyL4HwISqtYoWtiWaRdUNUoUOIK0JpvbyhG2vN-qo,171
|
432
436
|
odoo/addons/openupgrade_scripts/scripts/mrp_landed_costs/17.0.1.0/upgrade_analysis_work.txt,sha256=DiyPzzJmEgmZId7inD2fIWTAD2uM177LyaO1qFDrrYM,185
|
433
437
|
odoo/addons/openupgrade_scripts/scripts/mrp_subcontracting/17.0.0.1/upgrade_analysis.txt,sha256=AkP3hDgUkv3hFtRAP6PRm4x4qMN3PnEmJmZ2PuifLe0,228
|
@@ -558,6 +562,7 @@ odoo/addons/openupgrade_scripts/scripts/sale_async_emails/17.0.1.0/upgrade_analy
|
|
558
562
|
odoo/addons/openupgrade_scripts/scripts/sale_crm/17.0.1.0/upgrade_analysis.txt,sha256=lv8jHV4r15aW7GmffXmW3R6DrZAoKEC60trv5mjtbdU,147
|
559
563
|
odoo/addons/openupgrade_scripts/scripts/sale_crm/17.0.1.0/upgrade_analysis_work.txt,sha256=wmjKSpCaW6ientHM3WMAfbnXTuvofeXNPLN4guTEv0U,163
|
560
564
|
odoo/addons/openupgrade_scripts/scripts/sale_expense/17.0.1.0/upgrade_analysis.txt,sha256=fmL9ehU0qjB23ZWgU66K05YBEvF1kjLmbV3p28-CU3M,159
|
565
|
+
odoo/addons/openupgrade_scripts/scripts/sale_expense/17.0.1.0/upgrade_analysis_work.txt,sha256=No1vAbtKMtnsxmBz6yrLn35BMok2v7eUx-4rcYe-Ixc,175
|
561
566
|
odoo/addons/openupgrade_scripts/scripts/sale_expense_margin/17.0.1.0/upgrade_analysis.txt,sha256=9d62c8OD-bC7sknkGNfwteGPhnmi9OnL7DDCGu8F-Po,180
|
562
567
|
odoo/addons/openupgrade_scripts/scripts/sale_loyalty/17.0.1.0/upgrade_analysis.txt,sha256=LhAwNdgq-WE7cBBg7sVusy_5-VwbKTOp7NghdGNP0XE,165
|
563
568
|
odoo/addons/openupgrade_scripts/scripts/sale_loyalty_delivery/17.0.1.0/upgrade_analysis.txt,sha256=bD23IfjJVBYjQBhY16UgcqAARKgsyluEBJAjY07pp08,492
|
@@ -708,7 +713,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
|
|
708
713
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
709
714
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
710
715
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
|
711
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
712
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
713
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
714
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
716
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.269.dist-info/METADATA,sha256=8tBzwYAiDcePKRlgh61F8hM2uRDoMC0nL4UPQrp9WHY,3786
|
717
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.269.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
718
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.269.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
719
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.269.dist-info/RECORD,,
|
File without changes
|