mirror of
https://github.com/bringout/oca-workflow-process.git
synced 2026-04-25 02:32:04 +02:00
Initial commit: OCA Workflow Process packages (456 packages)
This commit is contained in:
commit
d366e42934
18799 changed files with 1284507 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright 2022 Tecnativa - Sergio Teruel
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
|
||||
def pre_init_hook(cr):
|
||||
"""Create computed columns if not exists when the module is instelled"""
|
||||
cr.execute(
|
||||
"""
|
||||
ALTER TABLE sale_order_line
|
||||
ADD COLUMN IF NOT EXISTS is_elaboration BOOLEAN;
|
||||
"""
|
||||
)
|
||||
cr.execute(
|
||||
"""
|
||||
ALTER TABLE sale_order_line ADD COLUMN IF NOT EXISTS elaboration_note VARCHAR;
|
||||
"""
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue