Migration to python-sql

This commit is contained in:
resteve 2013-10-01 15:41:06 +02:00
parent c5b208fe9f
commit cd79051153
1 changed files with 2 additions and 2 deletions

View File

@ -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)