From af736a8abe04a8d48ad7da65f90a65a55f6b5e2a Mon Sep 17 00:00:00 2001 From: Vicente Escaname Date: Fri, 9 Feb 2024 14:04:10 +0000 Subject: [PATCH] [MIG] product_brand_stock: Migrate to 15.0 from 16.0 --- product_brand_stock/__init__.py | 6 +++--- product_brand_stock/__manifest__.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/product_brand_stock/__init__.py b/product_brand_stock/__init__.py index 6c22a71e0..c9d607f59 100644 --- a/product_brand_stock/__init__.py +++ b/product_brand_stock/__init__.py @@ -13,9 +13,9 @@ def pre_init_hook(cr): "stock_quant", ) for to_init_table in to_init_tables: - query_alter = sql.SQL("ALTER TABLE {} ADD COLUMN IF NOT EXISTS product_brand_id integer").format( - sql.Identifier(to_init_table) - ) + query_alter = sql.SQL( + "ALTER TABLE {} ADD COLUMN IF NOT EXISTS product_brand_id integer" + ).format(sql.Identifier(to_init_table)) query_update = sql.SQL( "UPDATE {} x SET product_brand_id=t.product_brand_id " "FROM product_product p " diff --git a/product_brand_stock/__manifest__.py b/product_brand_stock/__manifest__.py index 61f52aab5..bf1311c09 100644 --- a/product_brand_stock/__manifest__.py +++ b/product_brand_stock/__manifest__.py @@ -5,7 +5,7 @@ "name": "Product Brand Stock", "summary": """ This module allows to work with product_brand in Stock.""", - "version": "16.0.1.0.0", + "version": "15.0.1.0.0", "license": "AGPL-3", "author": "Odoo Community Association (OCA)", "website": "https://github.com/OCA/brand",