changeset b5537bc01354 in modules/analytic_account:default
details:
https://hg.tryton.org/modules/analytic_account?cmd=changeset;node=b5537bc01354
description:
Use direct access to backend classes
issue8836
review258421002
diffstat:
account.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 9efd8092ba8a -r b5537bc01354 account.py
--- a/account.py Wed Dec 04 11:09:35 2019 +0100
+++ b/account.py Fri Dec 06 17:33:46 2019 +0100
@@ -389,14 +389,13 @@
def __register__(cls, module_name):
pool = Pool()
Account = pool.get('analytic_account.account')
- TableHandler = backend.get('TableHandler')
cursor = Transaction().connection.cursor()
# Migration from 3.4: use origin as the key for One2Many
migration_3_4 = False
old_table = 'analytic_account_account_selection_rel'
- if TableHandler.table_exist(old_table):
- TableHandler.table_rename(old_table, cls._table)
+ if backend.TableHandler.table_exist(old_table):
+ backend.TableHandler.table_rename(old_table, cls._table)
migration_3_4 = True
# Don't create table before renaming