mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
16 lines
378 B
Python
16 lines
378 B
Python
# Copyright 2019 Tecnativa - Ernesto Tejeda
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
|
|
|
|
|
def pre_init_hook(cr):
|
|
cr.execute(
|
|
"""ALTER TABLE stock_inventory_line
|
|
ADD COLUMN adjustment_cost numeric
|
|
DEFAULT 0"""
|
|
)
|
|
|
|
cr.execute(
|
|
"""ALTER TABLE stock_inventory_line
|
|
ALTER COLUMN adjustment_cost DROP DEFAULT;"""
|
|
)
|