From 09794bbccd36d146e24cfab154820b26f381a816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 15 Jul 2023 00:36:31 +0200 Subject: [PATCH] Use history table instance to migrate supply on sale column on history table Closes #12379 --- modules/sale_supply/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sale_supply/product.py b/modules/sale_supply/product.py index b1362ac2b2..469869ee54 100644 --- a/modules/sale_supply/product.py +++ b/modules/sale_supply/product.py @@ -35,7 +35,7 @@ class Template(metaclass=PoolMeta): table_h.column_rename('supply_on_sale', '_temp_supply_on_sale') if cls._history: h_table_h = cls.__table_handler__(module, history=True) - h_table = cls.__table__() + h_table = cls.__table_history__() h_migrate_supply_on_sale = ( h_table_h.column_exist('supply_on_sale') and h_table_h.column_is_type('supply_on_sale', 'BOOL'))