changeset 5c8b5d5f9a76 in modules/sale_subscription:default
details:
https://hg.tryton.org/modules/sale_subscription?cmd=changeset;node=5c8b5d5f9a76
description:
Use direct access to backend classes
issue8836
review258421002
diffstat:
subscription.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r bbc0141648d3 -r 5c8b5d5f9a76 subscription.py
--- a/subscription.py Wed Dec 04 11:09:36 2019 +0100
+++ b/subscription.py Fri Dec 06 17:33:47 2019 +0100
@@ -501,14 +501,13 @@
def __register__(cls, module):
pool = Pool()
Subscription = pool.get('sale.subscription')
- TableHandler = backend.get('TableHandler')
transaction = Transaction()
cursor = transaction.connection.cursor()
table = cls.__table__()
subscription = Subscription.__table__()
# Migration from 4.8: start_date required
- if TableHandler.table_exist(cls._table):
+ if backend.TableHandler.table_exist(cls._table):
table_h = cls.__table_handler__(module)
if table_h.column_exist('start_date'):
cursor.execute(*table.update(