Skip to content

Commit

Permalink
[FIX] product_uom_measure_type: Fixed the issue, that the module cann…
Browse files Browse the repository at this point in the history
…ot be installed on migrated databases which already have a column 'measure_type'
  • Loading branch information
Bastian Guenther authored and Bastian Guenther committed Nov 22, 2024
1 parent 3521029 commit ba7e21c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions product_uom_measure_type/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pre_init_hook(cr):
cr.execute(
"""
ALTER TABLE uom_category
ADD column measure_type character varying;
ADD column IF NOT EXISTS measure_type character varying;
"""
)

Expand Down Expand Up @@ -50,7 +50,7 @@ def pre_init_hook(cr):
cr.execute(
"""
ALTER TABLE uom_uom
ADD column measure_type character varying;
ADD column IF NOT EXISTS measure_type character varying;
"""
)

Expand All @@ -67,7 +67,7 @@ def pre_init_hook(cr):
cr.execute(
"""
ALTER TABLE product_template
ADD column uom_measure_type character varying;
ADD column IF NOT EXISTS uom_measure_type character varying;
"""
)

Expand Down

0 comments on commit ba7e21c

Please sign in to comment.