Migration to python-sql
This commit is contained in:
parent
c5b208fe9f
commit
cd79051153
4
sale.py
4
sale.py
|
@ -6,8 +6,7 @@ from trytond.model import fields
|
|||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.pyson import Eval
|
||||
from trytond.backend import TableHandler
|
||||
|
||||
from trytond import backend
|
||||
|
||||
__all__ = [
|
||||
'Sale',
|
||||
|
@ -30,6 +29,7 @@ class Sale():
|
|||
User = pool.get('res.user')
|
||||
|
||||
cursor = Transaction().cursor
|
||||
TableHandler = backend.get('TableHandler')
|
||||
table = TableHandler(cursor, cls, module_name)
|
||||
|
||||
super(Sale, cls).__register__(module_name)
|
||||
|
|
Loading…
Reference in New Issue