changeset 82956b75b13a in modules/product:default
details: https://hg.tryton.org/modules/product?cmd=changeset&node=82956b75b13a
description:
Use singleton for TableHandler
issue11301
review366861002
diffstat:
product.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (13 lines):
diff -r 9cd0781ca546 -r 82956b75b13a product.py
--- a/product.py Mon May 02 16:50:29 2022 +0200
+++ b/product.py Sat May 07 11:35:14 2022 +0200
@@ -683,8 +683,7 @@
if not exist and not cost_price_exist:
cls._migrate_property([], [], [])
elif not exist and cost_price_exist:
- cost_price_table = backend.TableHandler(
- ProductCostPrice, module_name)
+ cost_price_table = ProductCostPrice.__table_handler__(module_name)
if cost_price_table.column_exist('template'):
columns = ['create_uid', 'create_date',
'write_uid', 'write_date',