changeset f137d79f3708 in modules/sale_opportunity:default
details: 
https://hg.tryton.org/modules/sale_opportunity?cmd=changeset;node=f137d79f3708
description:
        Use direct access to backend classes

        issue8836
        review258421002
diffstat:

 configuration.py |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r 03233550e47b -r f137d79f3708 configuration.py
--- a/configuration.py  Wed Dec 04 11:09:36 2019 +0100
+++ b/configuration.py  Fri Dec 06 17:33:47 2019 +0100
@@ -44,8 +44,7 @@
 
     @classmethod
     def __register__(cls, module_name):
-        TableHandler = backend.get('TableHandler')
-        exist = TableHandler.table_exist(cls._table)
+        exist = backend.TableHandler.table_exist(cls._table)
         if exist:
             table = cls.__table_handler__(module_name)
             exist &= table.column_exist('sale_opportunity_sequence')

Reply via email to