Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
426e31ae by Cédric Krier at 2023-07-15T00:36:31+02:00
Use history table instance to migrate supply on sale column on history table

Closes #12379
- - - - -


1 changed file:

- modules/sale_supply/product.py


Changes:

=====================================
modules/sale_supply/product.py
=====================================
@@ -35,7 +35,7 @@
             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'))



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/426e31ae9b134fbc65d58835562422fe7a131de9

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/426e31ae9b134fbc65d58835562422fe7a131de9
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to