22 lines
771 B
Python
22 lines
771 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2026 Nexa Systems Inc.
|
|
"""Drop the 'inspected' value from sale_order.x_fc_receiving_status.
|
|
|
|
Sub 8 (2026-04-22) moved part inspection out of receiving and into the
|
|
recipe's racking step. The SO-level receiving status no longer needs
|
|
'inspected' as a terminal value — 'received' (boxes counted/staged/
|
|
closed) is now the final state.
|
|
|
|
This migration flips any existing rows with the obsolete value to the
|
|
new terminal value. On a freshly-installed instance there are zero rows;
|
|
the migration is defensive for instances that had pre-Sub-8 records.
|
|
"""
|
|
|
|
|
|
def migrate(cr, version):
|
|
cr.execute("""
|
|
UPDATE sale_order
|
|
SET x_fc_receiving_status = 'received'
|
|
WHERE x_fc_receiving_status = 'inspected'
|
|
""")
|