Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docsource/modules180-190.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| spreadsheet_dashboard_sale_timesheet |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| spreadsheet_dashboard_stock_account | | |
| spreadsheet_dashboard_stock_account |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| spreadsheet_dashboard_website_sale | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand All @@ -1102,7 +1102,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| stock_picking_batch |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| stock_sms | | |
| stock_sms |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| survey |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
17 changes: 17 additions & 0 deletions openupgrade_scripts/scripts/stock_sms/19.0.1.0/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2026 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.logged_query(
env.cr,
"""
UPDATE res_company
SET stock_confirmation_type = NULL
WHERE stock_move_sms_validation IS DISTINCT FROM TRUE
AND stock_confirmation_type = 'sms'
""",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---Models in module 'stock_sms'---
---Fields in module 'stock_sms'---
stock_sms / res.company / stock_move_sms_validation (boolean): DEL
DONE: post-migration: if stock_move_sms_validation = False -> stock_confirmation_type = null

---XML records in module 'stock_sms'---
Loading