Skip to content

Commit

Permalink
Merge PR OCA#3285 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by HaraldPanten
  • Loading branch information
OCA-git-bot committed Sep 9, 2024
2 parents da166f9 + 9790ee5 commit 6f07905
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sale_delivery_state/migrations/14.0.2.0.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2024 Manuel Regidor <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).


import logging

from odoo.tools.sql import column_exists, create_column

_logger = logging.getLogger(__name__)


def migrate(cr, version):
if not column_exists(cr, "sale_order_line", "skip_sale_delivery_state"):
_logger.info("Create sale_order_line column skip_sale_delivery_state")
create_column(cr, "sale_order_line", "skip_sale_delivery_state", "boolean")
cr.execute("UPDATE sale_order_line SET skip_sale_delivery_state = False")

0 comments on commit 6f07905

Please sign in to comment.